1// @file ScintillaEdit.h
2// Extended version of ScintillaEditBase with a method for each API
3// Copyright (c) 2011 Archaeopteryx Software, Inc. d/b/a Wingware
4
5#ifndef SCINTILLAEDIT_H
6#define SCINTILLAEDIT_H
7
8#include <QPair>
9
10#include "ScintillaEditBase.h"
11#include "ScintillaDocument.h"
12
13#ifndef EXPORT_IMPORT_API
14#ifdef WIN32
15#ifdef MAKING_LIBRARY
16#define EXPORT_IMPORT_API __declspec(dllexport)
17#else
18// Defining dllimport upsets moc
19#define EXPORT_IMPORT_API __declspec(dllimport)
20//#define EXPORT_IMPORT_API
21#endif
22#else
23#define EXPORT_IMPORT_API
24#endif
25#endif
26
27class EXPORT_IMPORT_API ScintillaEdit : public ScintillaEditBase {
28 Q_OBJECT
29
30public:
31 ScintillaEdit(QWidget *parent = 0);
32 virtual ~ScintillaEdit();
33
34 QByteArray TextReturner(int message, uptr_t wParam) const;
35
36 QPair<int, int>find_text(int flags, const char *text, int cpMin, int cpMax);
37 QByteArray get_text_range(int start, int end);
38 ScintillaDocument *get_doc();
39 void set_doc(ScintillaDocument *pdoc_);
40
41 // Same as previous two methods but with Qt style names
42 QPair<int, int>findText(int flags, const char *text, int cpMin, int cpMax) {
43 return find_text(flags, text, cpMin, cpMax);
44 }
45
46 QByteArray textRange(int start, int end) {
47 return get_text_range(start, end);
48 }
49
50 // Exposing the FORMATRANGE api with both underscore & qt style names
51 long format_range(bool draw, QPaintDevice* target, QPaintDevice* measure,
52 const QRect& print_rect, const QRect& page_rect,
53 long range_start, long range_end);
54 long formatRange(bool draw, QPaintDevice* target, QPaintDevice* measure,
55 const QRect& print_rect, const QRect& page_rect,
56 long range_start, long range_end) {
57 return format_range(draw, target, measure, print_rect, page_rect,
58 range_start, range_end);
59 }
60
61/* ++Autogenerated -- start of section automatically generated from Scintilla.iface */
62 void addText(sptr_t length, const char * text);
63 void addStyledText(sptr_t length, const char * c);
64 void insertText(sptr_t pos, const char * text);
65 void changeInsertion(sptr_t length, const char * text);
66 void clearAll();
67 void deleteRange(sptr_t start, sptr_t lengthDelete);
68 void clearDocumentStyle();
69 sptr_t length() const;
70 sptr_t charAt(sptr_t pos) const;
71 sptr_t currentPos() const;
72 sptr_t anchor() const;
73 sptr_t styleAt(sptr_t pos) const;
74 void redo();
75 void setUndoCollection(bool collectUndo);
76 void selectAll();
77 void setSavePoint();
78 bool canRedo();
79 sptr_t markerLineFromHandle(sptr_t markerHandle);
80 void markerDeleteHandle(sptr_t markerHandle);
81 sptr_t markerHandleFromLine(sptr_t line, sptr_t which);
82 sptr_t markerNumberFromLine(sptr_t line, sptr_t which);
83 bool undoCollection() const;
84 sptr_t viewWS() const;
85 void setViewWS(sptr_t viewWS);
86 sptr_t tabDrawMode() const;
87 void setTabDrawMode(sptr_t tabDrawMode);
88 sptr_t positionFromPoint(sptr_t x, sptr_t y);
89 sptr_t positionFromPointClose(sptr_t x, sptr_t y);
90 void gotoLine(sptr_t line);
91 void gotoPos(sptr_t caret);
92 void setAnchor(sptr_t anchor);
93 QByteArray getCurLine(sptr_t length);
94 sptr_t endStyled() const;
95 void convertEOLs(sptr_t eolMode);
96 sptr_t eOLMode() const;
97 void setEOLMode(sptr_t eolMode);
98 void startStyling(sptr_t start, sptr_t unused);
99 void setStyling(sptr_t length, sptr_t style);
100 bool bufferedDraw() const;
101 void setBufferedDraw(bool buffered);
102 void setTabWidth(sptr_t tabWidth);
103 sptr_t tabWidth() const;
104 void setTabMinimumWidth(sptr_t pixels);
105 sptr_t tabMinimumWidth() const;
106 void clearTabStops(sptr_t line);
107 void addTabStop(sptr_t line, sptr_t x);
108 sptr_t getNextTabStop(sptr_t line, sptr_t x);
109 void setCodePage(sptr_t codePage);
110 void setFontLocale(const char * localeName);
111 QByteArray fontLocale() const;
112 sptr_t iMEInteraction() const;
113 void setIMEInteraction(sptr_t imeInteraction);
114 void markerDefine(sptr_t markerNumber, sptr_t markerSymbol);
115 void markerSetFore(sptr_t markerNumber, sptr_t fore);
116 void markerSetBack(sptr_t markerNumber, sptr_t back);
117 void markerSetBackSelected(sptr_t markerNumber, sptr_t back);
118 void markerSetForeTranslucent(sptr_t markerNumber, sptr_t fore);
119 void markerSetBackTranslucent(sptr_t markerNumber, sptr_t back);
120 void markerSetBackSelectedTranslucent(sptr_t markerNumber, sptr_t back);
121 void markerSetStrokeWidth(sptr_t markerNumber, sptr_t hundredths);
122 void markerEnableHighlight(bool enabled);
123 sptr_t markerAdd(sptr_t line, sptr_t markerNumber);
124 void markerDelete(sptr_t line, sptr_t markerNumber);
125 void markerDeleteAll(sptr_t markerNumber);
126 sptr_t markerGet(sptr_t line);
127 sptr_t markerNext(sptr_t lineStart, sptr_t markerMask);
128 sptr_t markerPrevious(sptr_t lineStart, sptr_t markerMask);
129 void markerDefinePixmap(sptr_t markerNumber, const char * pixmap);
130 void markerAddSet(sptr_t line, sptr_t markerSet);
131 void markerSetAlpha(sptr_t markerNumber, sptr_t alpha);
132 sptr_t markerLayer(sptr_t markerNumber) const;
133 void markerSetLayer(sptr_t markerNumber, sptr_t layer);
134 void setMarginTypeN(sptr_t margin, sptr_t marginType);
135 sptr_t marginTypeN(sptr_t margin) const;
136 void setMarginWidthN(sptr_t margin, sptr_t pixelWidth);
137 sptr_t marginWidthN(sptr_t margin) const;
138 void setMarginMaskN(sptr_t margin, sptr_t mask);
139 sptr_t marginMaskN(sptr_t margin) const;
140 void setMarginSensitiveN(sptr_t margin, bool sensitive);
141 bool marginSensitiveN(sptr_t margin) const;
142 void setMarginCursorN(sptr_t margin, sptr_t cursor);
143 sptr_t marginCursorN(sptr_t margin) const;
144 void setMarginBackN(sptr_t margin, sptr_t back);
145 sptr_t marginBackN(sptr_t margin) const;
146 void setMargins(sptr_t margins);
147 sptr_t margins() const;
148 void styleClearAll();
149 void styleSetFore(sptr_t style, sptr_t fore);
150 void styleSetBack(sptr_t style, sptr_t back);
151 void styleSetBold(sptr_t style, bool bold);
152 void styleSetItalic(sptr_t style, bool italic);
153 void styleSetSize(sptr_t style, sptr_t sizePoints);
154 void styleSetFont(sptr_t style, const char * fontName);
155 void styleSetEOLFilled(sptr_t style, bool eolFilled);
156 void styleResetDefault();
157 void styleSetUnderline(sptr_t style, bool underline);
158 sptr_t styleFore(sptr_t style) const;
159 sptr_t styleBack(sptr_t style) const;
160 bool styleBold(sptr_t style) const;
161 bool styleItalic(sptr_t style) const;
162 sptr_t styleSize(sptr_t style) const;
163 QByteArray styleFont(sptr_t style) const;
164 bool styleEOLFilled(sptr_t style) const;
165 bool styleUnderline(sptr_t style) const;
166 sptr_t styleCase(sptr_t style) const;
167 sptr_t styleCharacterSet(sptr_t style) const;
168 bool styleVisible(sptr_t style) const;
169 bool styleChangeable(sptr_t style) const;
170 bool styleHotSpot(sptr_t style) const;
171 void styleSetCase(sptr_t style, sptr_t caseVisible);
172 void styleSetSizeFractional(sptr_t style, sptr_t sizeHundredthPoints);
173 sptr_t styleSizeFractional(sptr_t style) const;
174 void styleSetWeight(sptr_t style, sptr_t weight);
175 sptr_t styleWeight(sptr_t style) const;
176 void styleSetCharacterSet(sptr_t style, sptr_t characterSet);
177 void styleSetHotSpot(sptr_t style, bool hotspot);
178 void styleSetCheckMonospaced(sptr_t style, bool checkMonospaced);
179 bool styleCheckMonospaced(sptr_t style) const;
180 void setElementColour(sptr_t element, sptr_t colourElement);
181 sptr_t elementColour(sptr_t element) const;
182 void resetElementColour(sptr_t element);
183 bool elementIsSet(sptr_t element) const;
184 bool elementAllowsTranslucent(sptr_t element) const;
185 sptr_t elementBaseColour(sptr_t element) const;
186 void setSelFore(bool useSetting, sptr_t fore);
187 void setSelBack(bool useSetting, sptr_t back);
188 sptr_t selAlpha() const;
189 void setSelAlpha(sptr_t alpha);
190 bool selEOLFilled() const;
191 void setSelEOLFilled(bool filled);
192 sptr_t selectionLayer() const;
193 void setSelectionLayer(sptr_t layer);
194 sptr_t caretLineLayer() const;
195 void setCaretLineLayer(sptr_t layer);
196 void setCaretFore(sptr_t fore);
197 void assignCmdKey(sptr_t keyDefinition, sptr_t sciCommand);
198 void clearCmdKey(sptr_t keyDefinition);
199 void clearAllCmdKeys();
200 void setStylingEx(sptr_t length, const char * styles);
201 void styleSetVisible(sptr_t style, bool visible);
202 sptr_t caretPeriod() const;
203 void setCaretPeriod(sptr_t periodMilliseconds);
204 void setWordChars(const char * characters);
205 QByteArray wordChars() const;
206 void setCharacterCategoryOptimization(sptr_t countCharacters);
207 sptr_t characterCategoryOptimization() const;
208 void beginUndoAction();
209 void endUndoAction();
210 void indicSetStyle(sptr_t indicator, sptr_t indicatorStyle);
211 sptr_t indicStyle(sptr_t indicator) const;
212 void indicSetFore(sptr_t indicator, sptr_t fore);
213 sptr_t indicFore(sptr_t indicator) const;
214 void indicSetUnder(sptr_t indicator, bool under);
215 bool indicUnder(sptr_t indicator) const;
216 void indicSetHoverStyle(sptr_t indicator, sptr_t indicatorStyle);
217 sptr_t indicHoverStyle(sptr_t indicator) const;
218 void indicSetHoverFore(sptr_t indicator, sptr_t fore);
219 sptr_t indicHoverFore(sptr_t indicator) const;
220 void indicSetFlags(sptr_t indicator, sptr_t flags);
221 sptr_t indicFlags(sptr_t indicator) const;
222 void indicSetStrokeWidth(sptr_t indicator, sptr_t hundredths);
223 sptr_t indicStrokeWidth(sptr_t indicator) const;
224 void setWhitespaceFore(bool useSetting, sptr_t fore);
225 void setWhitespaceBack(bool useSetting, sptr_t back);
226 void setWhitespaceSize(sptr_t size);
227 sptr_t whitespaceSize() const;
228 void setLineState(sptr_t line, sptr_t state);
229 sptr_t lineState(sptr_t line) const;
230 sptr_t maxLineState() const;
231 bool caretLineVisible() const;
232 void setCaretLineVisible(bool show);
233 sptr_t caretLineBack() const;
234 void setCaretLineBack(sptr_t back);
235 sptr_t caretLineFrame() const;
236 void setCaretLineFrame(sptr_t width);
237 void styleSetChangeable(sptr_t style, bool changeable);
238 void autoCShow(sptr_t lengthEntered, const char * itemList);
239 void autoCCancel();
240 bool autoCActive();
241 sptr_t autoCPosStart();
242 void autoCComplete();
243 void autoCStops(const char * characterSet);
244 void autoCSetSeparator(sptr_t separatorCharacter);
245 sptr_t autoCSeparator() const;
246 void autoCSelect(const char * select);
247 void autoCSetCancelAtStart(bool cancel);
248 bool autoCCancelAtStart() const;
249 void autoCSetFillUps(const char * characterSet);
250 void autoCSetChooseSingle(bool chooseSingle);
251 bool autoCChooseSingle() const;
252 void autoCSetIgnoreCase(bool ignoreCase);
253 bool autoCIgnoreCase() const;
254 void userListShow(sptr_t listType, const char * itemList);
255 void autoCSetAutoHide(bool autoHide);
256 bool autoCAutoHide() const;
257 void autoCSetOptions(sptr_t options);
258 sptr_t autoCOptions() const;
259 void autoCSetDropRestOfWord(bool dropRestOfWord);
260 bool autoCDropRestOfWord() const;
261 void registerImage(sptr_t type, const char * xpmData);
262 void clearRegisteredImages();
263 sptr_t autoCTypeSeparator() const;
264 void autoCSetTypeSeparator(sptr_t separatorCharacter);
265 void autoCSetMaxWidth(sptr_t characterCount);
266 sptr_t autoCMaxWidth() const;
267 void autoCSetMaxHeight(sptr_t rowCount);
268 sptr_t autoCMaxHeight() const;
269 void setIndent(sptr_t indentSize);
270 sptr_t indent() const;
271 void setUseTabs(bool useTabs);
272 bool useTabs() const;
273 void setLineIndentation(sptr_t line, sptr_t indentation);
274 sptr_t lineIndentation(sptr_t line) const;
275 sptr_t lineIndentPosition(sptr_t line) const;
276 sptr_t column(sptr_t pos) const;
277 sptr_t countCharacters(sptr_t start, sptr_t end);
278 sptr_t countCodeUnits(sptr_t start, sptr_t end);
279 void setHScrollBar(bool visible);
280 bool hScrollBar() const;
281 void setIndentationGuides(sptr_t indentView);
282 sptr_t indentationGuides() const;
283 void setHighlightGuide(sptr_t column);
284 sptr_t highlightGuide() const;
285 sptr_t lineEndPosition(sptr_t line) const;
286 sptr_t codePage() const;
287 sptr_t caretFore() const;
288 bool readOnly() const;
289 void setCurrentPos(sptr_t caret);
290 void setSelectionStart(sptr_t anchor);
291 sptr_t selectionStart() const;
292 void setSelectionEnd(sptr_t caret);
293 sptr_t selectionEnd() const;
294 void setEmptySelection(sptr_t caret);
295 void setPrintMagnification(sptr_t magnification);
296 sptr_t printMagnification() const;
297 void setPrintColourMode(sptr_t mode);
298 sptr_t printColourMode() const;
299 sptr_t firstVisibleLine() const;
300 QByteArray getLine(sptr_t line);
301 sptr_t lineCount() const;
302 void allocateLines(sptr_t lines);
303 void setMarginLeft(sptr_t pixelWidth);
304 sptr_t marginLeft() const;
305 void setMarginRight(sptr_t pixelWidth);
306 sptr_t marginRight() const;
307 bool modify() const;
308 void setSel(sptr_t anchor, sptr_t caret);
309 QByteArray getSelText();
310 void hideSelection(bool hide);
311 sptr_t pointXFromPosition(sptr_t pos);
312 sptr_t pointYFromPosition(sptr_t pos);
313 sptr_t lineFromPosition(sptr_t pos);
314 sptr_t positionFromLine(sptr_t line);
315 void lineScroll(sptr_t columns, sptr_t lines);
316 void scrollCaret();
317 void scrollRange(sptr_t secondary, sptr_t primary);
318 void replaceSel(const char * text);
319 void setReadOnly(bool readOnly);
320 void null();
321 bool canPaste();
322 bool canUndo();
323 void emptyUndoBuffer();
324 void undo();
325 void cut();
326 void copy();
327 void paste();
328 void clear();
329 void setText(const char * text);
330 QByteArray getText(sptr_t length);
331 sptr_t textLength() const;
332 sptr_t directFunction() const;
333 sptr_t directStatusFunction() const;
334 sptr_t directPointer() const;
335 void setOvertype(bool overType);
336 bool overtype() const;
337 void setCaretWidth(sptr_t pixelWidth);
338 sptr_t caretWidth() const;
339 void setTargetStart(sptr_t start);
340 sptr_t targetStart() const;
341 void setTargetStartVirtualSpace(sptr_t space);
342 sptr_t targetStartVirtualSpace() const;
343 void setTargetEnd(sptr_t end);
344 sptr_t targetEnd() const;
345 void setTargetEndVirtualSpace(sptr_t space);
346 sptr_t targetEndVirtualSpace() const;
347 void setTargetRange(sptr_t start, sptr_t end);
348 QByteArray targetText() const;
349 void targetFromSelection();
350 void targetWholeDocument();
351 sptr_t replaceTarget(sptr_t length, const char * text);
352 sptr_t replaceTargetRE(sptr_t length, const char * text);
353 sptr_t searchInTarget(sptr_t length, const char * text);
354 void setSearchFlags(sptr_t searchFlags);
355 sptr_t searchFlags() const;
356 void callTipShow(sptr_t pos, const char * definition);
357 void callTipCancel();
358 bool callTipActive();
359 sptr_t callTipPosStart();
360 void callTipSetPosStart(sptr_t posStart);
361 void callTipSetHlt(sptr_t highlightStart, sptr_t highlightEnd);
362 void callTipSetBack(sptr_t back);
363 void callTipSetFore(sptr_t fore);
364 void callTipSetForeHlt(sptr_t fore);
365 void callTipUseStyle(sptr_t tabSize);
366 void callTipSetPosition(bool above);
367 sptr_t visibleFromDocLine(sptr_t docLine);
368 sptr_t docLineFromVisible(sptr_t displayLine);
369 sptr_t wrapCount(sptr_t docLine);
370 void setFoldLevel(sptr_t line, sptr_t level);
371 sptr_t foldLevel(sptr_t line) const;
372 sptr_t lastChild(sptr_t line, sptr_t level) const;
373 sptr_t foldParent(sptr_t line) const;
374 void showLines(sptr_t lineStart, sptr_t lineEnd);
375 void hideLines(sptr_t lineStart, sptr_t lineEnd);
376 bool lineVisible(sptr_t line) const;
377 bool allLinesVisible() const;
378 void setFoldExpanded(sptr_t line, bool expanded);
379 bool foldExpanded(sptr_t line) const;
380 void toggleFold(sptr_t line);
381 void toggleFoldShowText(sptr_t line, const char * text);
382 void foldDisplayTextSetStyle(sptr_t style);
383 sptr_t foldDisplayTextStyle() const;
384 void setDefaultFoldDisplayText(const char * text);
385 QByteArray getDefaultFoldDisplayText();
386 void foldLine(sptr_t line, sptr_t action);
387 void foldChildren(sptr_t line, sptr_t action);
388 void expandChildren(sptr_t line, sptr_t level);
389 void foldAll(sptr_t action);
390 void ensureVisible(sptr_t line);
391 void setAutomaticFold(sptr_t automaticFold);
392 sptr_t automaticFold() const;
393 void setFoldFlags(sptr_t flags);
394 void ensureVisibleEnforcePolicy(sptr_t line);
395 void setTabIndents(bool tabIndents);
396 bool tabIndents() const;
397 void setBackSpaceUnIndents(bool bsUnIndents);
398 bool backSpaceUnIndents() const;
399 void setMouseDwellTime(sptr_t periodMilliseconds);
400 sptr_t mouseDwellTime() const;
401 sptr_t wordStartPosition(sptr_t pos, bool onlyWordCharacters);
402 sptr_t wordEndPosition(sptr_t pos, bool onlyWordCharacters);
403 bool isRangeWord(sptr_t start, sptr_t end);
404 void setIdleStyling(sptr_t idleStyling);
405 sptr_t idleStyling() const;
406 void setWrapMode(sptr_t wrapMode);
407 sptr_t wrapMode() const;
408 void setWrapVisualFlags(sptr_t wrapVisualFlags);
409 sptr_t wrapVisualFlags() const;
410 void setWrapVisualFlagsLocation(sptr_t wrapVisualFlagsLocation);
411 sptr_t wrapVisualFlagsLocation() const;
412 void setWrapStartIndent(sptr_t indent);
413 sptr_t wrapStartIndent() const;
414 void setWrapIndentMode(sptr_t wrapIndentMode);
415 sptr_t wrapIndentMode() const;
416 void setLayoutCache(sptr_t cacheMode);
417 sptr_t layoutCache() const;
418 void setScrollWidth(sptr_t pixelWidth);
419 sptr_t scrollWidth() const;
420 void setScrollWidthTracking(bool tracking);
421 bool scrollWidthTracking() const;
422 sptr_t textWidth(sptr_t style, const char * text);
423 void setEndAtLastLine(bool endAtLastLine);
424 bool endAtLastLine() const;
425 sptr_t textHeight(sptr_t line);
426 void setVScrollBar(bool visible);
427 bool vScrollBar() const;
428 void appendText(sptr_t length, const char * text);
429 sptr_t phasesDraw() const;
430 void setPhasesDraw(sptr_t phases);
431 void setFontQuality(sptr_t fontQuality);
432 sptr_t fontQuality() const;
433 void setFirstVisibleLine(sptr_t displayLine);
434 void setMultiPaste(sptr_t multiPaste);
435 sptr_t multiPaste() const;
436 QByteArray tag(sptr_t tagNumber) const;
437 void linesJoin();
438 void linesSplit(sptr_t pixelWidth);
439 void setFoldMarginColour(bool useSetting, sptr_t back);
440 void setFoldMarginHiColour(bool useSetting, sptr_t fore);
441 void setAccessibility(sptr_t accessibility);
442 sptr_t accessibility() const;
443 void lineDown();
444 void lineDownExtend();
445 void lineUp();
446 void lineUpExtend();
447 void charLeft();
448 void charLeftExtend();
449 void charRight();
450 void charRightExtend();
451 void wordLeft();
452 void wordLeftExtend();
453 void wordRight();
454 void wordRightExtend();
455 void home();
456 void homeExtend();
457 void lineEnd();
458 void lineEndExtend();
459 void documentStart();
460 void documentStartExtend();
461 void documentEnd();
462 void documentEndExtend();
463 void pageUp();
464 void pageUpExtend();
465 void pageDown();
466 void pageDownExtend();
467 void editToggleOvertype();
468 void cancel();
469 void deleteBack();
470 void tab();
471 void backTab();
472 void newLine();
473 void formFeed();
474 void vCHome();
475 void vCHomeExtend();
476 void zoomIn();
477 void zoomOut();
478 void delWordLeft();
479 void delWordRight();
480 void delWordRightEnd();
481 void lineCut();
482 void lineDelete();
483 void lineTranspose();
484 void lineReverse();
485 void lineDuplicate();
486 void lowerCase();
487 void upperCase();
488 void lineScrollDown();
489 void lineScrollUp();
490 void deleteBackNotLine();
491 void homeDisplay();
492 void homeDisplayExtend();
493 void lineEndDisplay();
494 void lineEndDisplayExtend();
495 void homeWrap();
496 void homeWrapExtend();
497 void lineEndWrap();
498 void lineEndWrapExtend();
499 void vCHomeWrap();
500 void vCHomeWrapExtend();
501 void lineCopy();
502 void moveCaretInsideView();
503 sptr_t lineLength(sptr_t line);
504 void braceHighlight(sptr_t posA, sptr_t posB);
505 void braceHighlightIndicator(bool useSetting, sptr_t indicator);
506 void braceBadLight(sptr_t pos);
507 void braceBadLightIndicator(bool useSetting, sptr_t indicator);
508 sptr_t braceMatch(sptr_t pos, sptr_t maxReStyle);
509 sptr_t braceMatchNext(sptr_t pos, sptr_t startPos);
510 bool viewEOL() const;
511 void setViewEOL(bool visible);
512 sptr_t docPointer() const;
513 void setDocPointer(sptr_t doc);
514 void setModEventMask(sptr_t eventMask);
515 sptr_t edgeColumn() const;
516 void setEdgeColumn(sptr_t column);
517 sptr_t edgeMode() const;
518 void setEdgeMode(sptr_t edgeMode);
519 sptr_t edgeColour() const;
520 void setEdgeColour(sptr_t edgeColour);
521 void multiEdgeAddLine(sptr_t column, sptr_t edgeColour);
522 void multiEdgeClearAll();
523 sptr_t multiEdgeColumn(sptr_t which) const;
524 void searchAnchor();
525 sptr_t searchNext(sptr_t searchFlags, const char * text);
526 sptr_t searchPrev(sptr_t searchFlags, const char * text);
527 sptr_t linesOnScreen() const;
528 void usePopUp(sptr_t popUpMode);
529 bool selectionIsRectangle() const;
530 void setZoom(sptr_t zoomInPoints);
531 sptr_t zoom() const;
532 sptr_t createDocument(sptr_t bytes, sptr_t documentOptions);
533 void addRefDocument(sptr_t doc);
534 void releaseDocument(sptr_t doc);
535 sptr_t documentOptions() const;
536 sptr_t modEventMask() const;
537 void setCommandEvents(bool commandEvents);
538 bool commandEvents() const;
539 void setFocus(bool focus);
540 bool focus() const;
541 void setStatus(sptr_t status);
542 sptr_t status() const;
543 void setMouseDownCaptures(bool captures);
544 bool mouseDownCaptures() const;
545 void setMouseWheelCaptures(bool captures);
546 bool mouseWheelCaptures() const;
547 void setCursor(sptr_t cursorType);
548 sptr_t cursor() const;
549 void setControlCharSymbol(sptr_t symbol);
550 sptr_t controlCharSymbol() const;
551 void wordPartLeft();
552 void wordPartLeftExtend();
553 void wordPartRight();
554 void wordPartRightExtend();
555 void setVisiblePolicy(sptr_t visiblePolicy, sptr_t visibleSlop);
556 void delLineLeft();
557 void delLineRight();
558 void setXOffset(sptr_t xOffset);
559 sptr_t xOffset() const;
560 void chooseCaretX();
561 void grabFocus();
562 void setXCaretPolicy(sptr_t caretPolicy, sptr_t caretSlop);
563 void setYCaretPolicy(sptr_t caretPolicy, sptr_t caretSlop);
564 void setPrintWrapMode(sptr_t wrapMode);
565 sptr_t printWrapMode() const;
566 void setHotspotActiveFore(bool useSetting, sptr_t fore);
567 sptr_t hotspotActiveFore() const;
568 void setHotspotActiveBack(bool useSetting, sptr_t back);
569 sptr_t hotspotActiveBack() const;
570 void setHotspotActiveUnderline(bool underline);
571 bool hotspotActiveUnderline() const;
572 void setHotspotSingleLine(bool singleLine);
573 bool hotspotSingleLine() const;
574 void paraDown();
575 void paraDownExtend();
576 void paraUp();
577 void paraUpExtend();
578 sptr_t positionBefore(sptr_t pos);
579 sptr_t positionAfter(sptr_t pos);
580 sptr_t positionRelative(sptr_t pos, sptr_t relative);
581 sptr_t positionRelativeCodeUnits(sptr_t pos, sptr_t relative);
582 void copyRange(sptr_t start, sptr_t end);
583 void copyText(sptr_t length, const char * text);
584 void setSelectionMode(sptr_t selectionMode);
585 sptr_t selectionMode() const;
586 bool moveExtendsSelection() const;
587 sptr_t getLineSelStartPosition(sptr_t line);
588 sptr_t getLineSelEndPosition(sptr_t line);
589 void lineDownRectExtend();
590 void lineUpRectExtend();
591 void charLeftRectExtend();
592 void charRightRectExtend();
593 void homeRectExtend();
594 void vCHomeRectExtend();
595 void lineEndRectExtend();
596 void pageUpRectExtend();
597 void pageDownRectExtend();
598 void stutteredPageUp();
599 void stutteredPageUpExtend();
600 void stutteredPageDown();
601 void stutteredPageDownExtend();
602 void wordLeftEnd();
603 void wordLeftEndExtend();
604 void wordRightEnd();
605 void wordRightEndExtend();
606 void setWhitespaceChars(const char * characters);
607 QByteArray whitespaceChars() const;
608 void setPunctuationChars(const char * characters);
609 QByteArray punctuationChars() const;
610 void setCharsDefault();
611 sptr_t autoCCurrent() const;
612 QByteArray autoCCurrentText() const;
613 void autoCSetCaseInsensitiveBehaviour(sptr_t behaviour);
614 sptr_t autoCCaseInsensitiveBehaviour() const;
615 void autoCSetMulti(sptr_t multi);
616 sptr_t autoCMulti() const;
617 void autoCSetOrder(sptr_t order);
618 sptr_t autoCOrder() const;
619 void allocate(sptr_t bytes);
620 QByteArray targetAsUTF8();
621 void setLengthForEncode(sptr_t bytes);
622 QByteArray encodedFromUTF8(const char * utf8);
623 sptr_t findColumn(sptr_t line, sptr_t column);
624 sptr_t caretSticky() const;
625 void setCaretSticky(sptr_t useCaretStickyBehaviour);
626 void toggleCaretSticky();
627 void setPasteConvertEndings(bool convert);
628 bool pasteConvertEndings() const;
629 void replaceRectangular(sptr_t length, const char * text);
630 void selectionDuplicate();
631 void setCaretLineBackAlpha(sptr_t alpha);
632 sptr_t caretLineBackAlpha() const;
633 void setCaretStyle(sptr_t caretStyle);
634 sptr_t caretStyle() const;
635 void setIndicatorCurrent(sptr_t indicator);
636 sptr_t indicatorCurrent() const;
637 void setIndicatorValue(sptr_t value);
638 sptr_t indicatorValue() const;
639 void indicatorFillRange(sptr_t start, sptr_t lengthFill);
640 void indicatorClearRange(sptr_t start, sptr_t lengthClear);
641 sptr_t indicatorAllOnFor(sptr_t pos);
642 sptr_t indicatorValueAt(sptr_t indicator, sptr_t pos);
643 sptr_t indicatorStart(sptr_t indicator, sptr_t pos);
644 sptr_t indicatorEnd(sptr_t indicator, sptr_t pos);
645 void setPositionCache(sptr_t size);
646 sptr_t positionCache() const;
647 void copyAllowLine();
648 sptr_t characterPointer() const;
649 sptr_t rangePointer(sptr_t start, sptr_t lengthRange) const;
650 sptr_t gapPosition() const;
651 void indicSetAlpha(sptr_t indicator, sptr_t alpha);
652 sptr_t indicAlpha(sptr_t indicator) const;
653 void indicSetOutlineAlpha(sptr_t indicator, sptr_t alpha);
654 sptr_t indicOutlineAlpha(sptr_t indicator) const;
655 void setExtraAscent(sptr_t extraAscent);
656 sptr_t extraAscent() const;
657 void setExtraDescent(sptr_t extraDescent);
658 sptr_t extraDescent() const;
659 sptr_t markerSymbolDefined(sptr_t markerNumber);
660 void marginSetText(sptr_t line, const char * text);
661 QByteArray marginText(sptr_t line) const;
662 void marginSetStyle(sptr_t line, sptr_t style);
663 sptr_t marginStyle(sptr_t line) const;
664 void marginSetStyles(sptr_t line, const char * styles);
665 QByteArray marginStyles(sptr_t line) const;
666 void marginTextClearAll();
667 void marginSetStyleOffset(sptr_t style);
668 sptr_t marginStyleOffset() const;
669 void setMarginOptions(sptr_t marginOptions);
670 sptr_t marginOptions() const;
671 void annotationSetText(sptr_t line, const char * text);
672 QByteArray annotationText(sptr_t line) const;
673 void annotationSetStyle(sptr_t line, sptr_t style);
674 sptr_t annotationStyle(sptr_t line) const;
675 void annotationSetStyles(sptr_t line, const char * styles);
676 QByteArray annotationStyles(sptr_t line) const;
677 sptr_t annotationLines(sptr_t line) const;
678 void annotationClearAll();
679 void annotationSetVisible(sptr_t visible);
680 sptr_t annotationVisible() const;
681 void annotationSetStyleOffset(sptr_t style);
682 sptr_t annotationStyleOffset() const;
683 void releaseAllExtendedStyles();
684 sptr_t allocateExtendedStyles(sptr_t numberStyles);
685 void addUndoAction(sptr_t token, sptr_t flags);
686 sptr_t charPositionFromPoint(sptr_t x, sptr_t y);
687 sptr_t charPositionFromPointClose(sptr_t x, sptr_t y);
688 void setMouseSelectionRectangularSwitch(bool mouseSelectionRectangularSwitch);
689 bool mouseSelectionRectangularSwitch() const;
690 void setMultipleSelection(bool multipleSelection);
691 bool multipleSelection() const;
692 void setAdditionalSelectionTyping(bool additionalSelectionTyping);
693 bool additionalSelectionTyping() const;
694 void setAdditionalCaretsBlink(bool additionalCaretsBlink);
695 bool additionalCaretsBlink() const;
696 void setAdditionalCaretsVisible(bool additionalCaretsVisible);
697 bool additionalCaretsVisible() const;
698 sptr_t selections() const;
699 bool selectionEmpty() const;
700 void clearSelections();
701 void setSelection(sptr_t caret, sptr_t anchor);
702 void addSelection(sptr_t caret, sptr_t anchor);
703 void dropSelectionN(sptr_t selection);
704 void setMainSelection(sptr_t selection);
705 sptr_t mainSelection() const;
706 void setSelectionNCaret(sptr_t selection, sptr_t caret);
707 sptr_t selectionNCaret(sptr_t selection) const;
708 void setSelectionNAnchor(sptr_t selection, sptr_t anchor);
709 sptr_t selectionNAnchor(sptr_t selection) const;
710 void setSelectionNCaretVirtualSpace(sptr_t selection, sptr_t space);
711 sptr_t selectionNCaretVirtualSpace(sptr_t selection) const;
712 void setSelectionNAnchorVirtualSpace(sptr_t selection, sptr_t space);
713 sptr_t selectionNAnchorVirtualSpace(sptr_t selection) const;
714 void setSelectionNStart(sptr_t selection, sptr_t anchor);
715 sptr_t selectionNStart(sptr_t selection) const;
716 sptr_t selectionNStartVirtualSpace(sptr_t selection) const;
717 void setSelectionNEnd(sptr_t selection, sptr_t caret);
718 sptr_t selectionNEndVirtualSpace(sptr_t selection) const;
719 sptr_t selectionNEnd(sptr_t selection) const;
720 void setRectangularSelectionCaret(sptr_t caret);
721 sptr_t rectangularSelectionCaret() const;
722 void setRectangularSelectionAnchor(sptr_t anchor);
723 sptr_t rectangularSelectionAnchor() const;
724 void setRectangularSelectionCaretVirtualSpace(sptr_t space);
725 sptr_t rectangularSelectionCaretVirtualSpace() const;
726 void setRectangularSelectionAnchorVirtualSpace(sptr_t space);
727 sptr_t rectangularSelectionAnchorVirtualSpace() const;
728 void setVirtualSpaceOptions(sptr_t virtualSpaceOptions);
729 sptr_t virtualSpaceOptions() const;
730 void setRectangularSelectionModifier(sptr_t modifier);
731 sptr_t rectangularSelectionModifier() const;
732 void setAdditionalSelFore(sptr_t fore);
733 void setAdditionalSelBack(sptr_t back);
734 void setAdditionalSelAlpha(sptr_t alpha);
735 sptr_t additionalSelAlpha() const;
736 void setAdditionalCaretFore(sptr_t fore);
737 sptr_t additionalCaretFore() const;
738 void rotateSelection();
739 void swapMainAnchorCaret();
740 void multipleSelectAddNext();
741 void multipleSelectAddEach();
742 sptr_t changeLexerState(sptr_t start, sptr_t end);
743 sptr_t contractedFoldNext(sptr_t lineStart);
744 void verticalCentreCaret();
745 void moveSelectedLinesUp();
746 void moveSelectedLinesDown();
747 void setIdentifier(sptr_t identifier);
748 sptr_t identifier() const;
749 void rGBAImageSetWidth(sptr_t width);
750 void rGBAImageSetHeight(sptr_t height);
751 void rGBAImageSetScale(sptr_t scalePercent);
752 void markerDefineRGBAImage(sptr_t markerNumber, const char * pixels);
753 void registerRGBAImage(sptr_t type, const char * pixels);
754 void scrollToStart();
755 void scrollToEnd();
756 void setTechnology(sptr_t technology);
757 sptr_t technology() const;
758 sptr_t createLoader(sptr_t bytes, sptr_t documentOptions);
759 void findIndicatorShow(sptr_t start, sptr_t end);
760 void findIndicatorFlash(sptr_t start, sptr_t end);
761 void findIndicatorHide();
762 void vCHomeDisplay();
763 void vCHomeDisplayExtend();
764 bool caretLineVisibleAlways() const;
765 void setCaretLineVisibleAlways(bool alwaysVisible);
766 void setLineEndTypesAllowed(sptr_t lineEndBitSet);
767 sptr_t lineEndTypesAllowed() const;
768 sptr_t lineEndTypesActive() const;
769 void setRepresentation(const char * encodedCharacter, const char * representation);
770 QByteArray representation(const char * encodedCharacter) const;
771 void clearRepresentation(const char * encodedCharacter);
772 void clearAllRepresentations();
773 void setRepresentationAppearance(const char * encodedCharacter, sptr_t appearance);
774 sptr_t representationAppearance(const char * encodedCharacter) const;
775 void setRepresentationColour(const char * encodedCharacter, sptr_t colour);
776 sptr_t representationColour(const char * encodedCharacter) const;
777 void eOLAnnotationSetText(sptr_t line, const char * text);
778 QByteArray eOLAnnotationText(sptr_t line) const;
779 void eOLAnnotationSetStyle(sptr_t line, sptr_t style);
780 sptr_t eOLAnnotationStyle(sptr_t line) const;
781 void eOLAnnotationClearAll();
782 void eOLAnnotationSetVisible(sptr_t visible);
783 sptr_t eOLAnnotationVisible() const;
784 void eOLAnnotationSetStyleOffset(sptr_t style);
785 sptr_t eOLAnnotationStyleOffset() const;
786 bool supportsFeature(sptr_t feature) const;
787 sptr_t lineCharacterIndex() const;
788 void allocateLineCharacterIndex(sptr_t lineCharacterIndex);
789 void releaseLineCharacterIndex(sptr_t lineCharacterIndex);
790 sptr_t lineFromIndexPosition(sptr_t pos, sptr_t lineCharacterIndex);
791 sptr_t indexPositionFromLine(sptr_t line, sptr_t lineCharacterIndex);
792 void startRecord();
793 void stopRecord();
794 sptr_t lexer() const;
795 void colourise(sptr_t start, sptr_t end);
796 void setProperty(const char * key, const char * value);
797 void setKeyWords(sptr_t keyWordSet, const char * keyWords);
798 QByteArray property(const char * key) const;
799 QByteArray propertyExpanded(const char * key) const;
800 sptr_t propertyInt(const char * key, sptr_t defaultValue) const;
801 QByteArray lexerLanguage() const;
802 sptr_t privateLexerCall(sptr_t operation, sptr_t pointer);
803 QByteArray propertyNames();
804 sptr_t propertyType(const char * name);
805 QByteArray describeProperty(const char * name);
806 QByteArray describeKeyWordSets();
807 sptr_t lineEndTypesSupported() const;
808 sptr_t allocateSubStyles(sptr_t styleBase, sptr_t numberStyles);
809 sptr_t subStylesStart(sptr_t styleBase) const;
810 sptr_t subStylesLength(sptr_t styleBase) const;
811 sptr_t styleFromSubStyle(sptr_t subStyle) const;
812 sptr_t primaryStyleFromStyle(sptr_t style) const;
813 void freeSubStyles();
814 void setIdentifiers(sptr_t style, const char * identifiers);
815 sptr_t distanceToSecondaryStyles() const;
816 QByteArray subStyleBases() const;
817 sptr_t namedStyles() const;
818 QByteArray nameOfStyle(sptr_t style);
819 QByteArray tagsOfStyle(sptr_t style);
820 QByteArray descriptionOfStyle(sptr_t style);
821 void setILexer(sptr_t ilexer);
822 sptr_t bidirectional() const;
823 void setBidirectional(sptr_t bidirectional);
824/* --Autogenerated -- end of section automatically generated from Scintilla.iface */
825
826};
827
828#if defined(__GNUC__)
829#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
830#if !defined(__clang__) && (__GNUC__ >= 8)
831#pragma GCC diagnostic ignored "-Wcast-function-type"
832#endif
833#endif
834
835#endif /* SCINTILLAEDIT_H */
836