/usr/share/sip/qt/qtext/qextscintilla.sip is in python-qt-dev 3.18.1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 | // This is the SIP interface definition for QextScintilla.
//
// Copyright (c) 2007
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
//
// This file is part of PyQt.
//
// This copy of PyQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
//
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE. If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// The documentation is in the main documentation file because SIP isn't clever
// enough to handle the resulting %Timeline complexity.
class QextScintilla : QextScintillaBase
{
%TypeHeaderCode
#include <qextscintilla.h>
%End
public:
enum {
AiMaintain,
AiOpening,
AiClosing
};
enum AutoCompletionSource {
AcsDocument,
AcsAPIs,
%If (QScintilla_1_7 -)
AcsAll,
%End
};
enum BraceMatch {
NoBraceMatch,
StrictBraceMatch,
SloppyBraceMatch
};
%If (QScintilla_1_4 -)
enum EdgeMode {
EdgeNone,
EdgeLine,
EdgeBackground
};
%End
enum EolMode {
EolWindows,
EolUnix,
EolMac
};
enum FoldStyle {
NoFoldStyle,
PlainFoldStyle,
CircledFoldStyle,
BoxedFoldStyle,
CircledTreeFoldStyle,
BoxedTreeFoldStyle
};
enum MarkerSymbol {
Circle,
Rectangle,
RightTriangle,
SmallRectangle,
RightArrow,
Invisible,
DownTriangle,
Minus,
Plus,
VerticalLine,
BottomLeftCorner,
LeftSideSplitter,
BoxedPlus,
BoxedPlusConnected,
BoxedMinus,
BoxedMinusConnected,
RoundedBottomLeftCorner,
LeftSideRoundedSplitter,
CircledPlus,
CircledPlusConnected,
CircledMinus,
CircledMinusConnected,
Background,
ThreeDots,
ThreeRightArrows
};
enum WhitespaceVisibility {
WsInvisible,
WsVisible,
WsVisibleAfterIndent
};
enum WrapMode {
WrapNone,
WrapWord,
%If (QScintilla_1_7 -)
WrapCharacter,
%End
};
%If (QScintilla_1_7 -)
enum WrapVisualFlag {
WrapFlagNone,
WrapFlagByText,
WrapFlagByBorder,
};
%End
QextScintilla(QWidget * /TransferThis/ = 0,const char * = 0,
WFlags = 0);
bool autoCompletionCaseSensitivity();
%If (QScintilla_1_7 -)
bool autoCompletionFillupsEnabled();
%End
bool autoCompletionReplaceWord();
bool autoCompletionShowSingle();
AutoCompletionSource autoCompletionSource() const;
int autoCompletionThreshold() const;
bool autoIndent() const;
bool backspaceUnindents();
void beginUndoAction();
BraceMatch braceMatching() const;
int callTipsVisible() const;
%If (QScintilla_1_7 -)
void cancelList();
%End
void clearRegisteredImages();
void convertEols(EolMode);
%If (QScintilla_1_3 -)
QextScintillaDocument document();
%End
void endUndoAction();
%If (QScintilla_1_4 -)
QColor edgeColor();
int edgeColumn();
EdgeMode edgeMode();
%End
EolMode eolMode();
bool eolVisibility();
%If (QScintilla_1_7 -)
QColor color() const;
QColor paper() const;
%End
%If (QScintilla_1_6 -)
virtual bool findFirst(const QString &,bool,bool,bool,bool,bool = 1,
int = -1,int = -1,bool = 1);
%End
%If (- QScintilla_1_6)
virtual bool findFirst(const QString &,bool,bool,bool,bool,bool = 1,
int = -1,int = -1);
%End
virtual bool findNext();
%If (QScintilla_1_7 -)
int firstVisibleLine();
%End
FoldStyle folding() const;
void getCursorPosition(int *,int *);
void getSelection(int *,int *,int *,int *);
bool hasSelectedText();
int indentation(int);
bool indentationGuides();
bool indentationsUseTabs();
int indentationWidth();
%If (QScintilla_1_7 -)
bool isCallTipActive();
bool isListActive();
%End
bool isModified();
bool isReadOnly();
bool isRedoAvailable();
bool isUndoAvailable();
bool isUtf8();
int lineAt(const QPoint &);
int lineLength(int);
int lines();
int length();
%If (QScintilla_1_7 -)
QextScintillaLexer *lexer() const;
%End
bool marginLineNumbers(int);
int marginMarkerMask(int);
bool marginSensitivity(int);
int marginWidth(int);
int markerDefine(MarkerSymbol,int = -1);
int markerDefine(char,int = -1);
int markerDefine(const QPixmap *,int = -1);
int markerAdd(int,int);
unsigned markersAtLine(int);
void markerDelete(int,int = -1);
void markerDeleteAll(int = -1);
void markerDeleteHandle(int);
int markerLine(int);
int markerFindNext(int,unsigned);
int markerFindPrevious(int,unsigned);
%If (QScintilla_1_3 -)
virtual void recolor(int = 0,int = -1);
%End
void registerImage(int,const QPixmap *);
virtual void replace(const QString &);
void resetFoldMarginColors();
void setFoldMarginColors(const QColor &,const QColor &);
void setAutoCompletionAPIs(QextScintillaAPIs * = 0);
void setAutoCompletionFillups(const char *);
%If (QScintilla_1_7 -)
void setAutoCompletionFillupsEnabled(bool);
void setAutoCompletionStartCharacters(const char *);
%End
void setCallTipsAPIs(QextScintillaAPIs * = 0);
void setCallTipsBackgroundColor(const QColor &);
void setCallTipsForegroundColor(const QColor &);
void setCallTipsHighlightColor(const QColor &);
void setCallTipsVisible(int);
%If (QScintilla_1_3 -)
void setDocument(const QextScintillaDocument &);
%End
%If (QScintilla_1_4 -)
void setEdgeColor(const QColor &);
void setEdgeColumn(int);
void setEdgeMode(EdgeMode);
%End
%If (QScintilla_1_7 -)
virtual void setFont(const QFont &);
%End
void setMarkerBackgroundColor(const QColor &,int = -1);
void setMarkerForegroundColor(const QColor &,int = -1);
void setMatchedBraceBackgroundColor(const QColor &);
void setMatchedBraceForegroundColor(const QColor &);
void setUnmatchedBraceBackgroundColor(const QColor &);
void setUnmatchedBraceForegroundColor(const QColor &);
%If (QScintilla_1_7 -)
void setWrapVisualFlags(WrapVisualFlag,
WrapVisualFlag = QextScintilla::WrapFlagNone, int = 0);
%End
QString selectedText();
%If (QScintilla_1_7 -)
void showUserList(int, const QStringList &);
%End
QextScintillaCommandSet *standardCommands() const;
bool tabIndents();
int tabWidth();
QString text();
QString text(int);
%If (QScintilla_1_7 -)
int textHeight(int);
%End
WhitespaceVisibility whitespaceVisibility();
%If (QScintilla_1_4 -)
WrapMode wrapMode();
%End
public slots:
virtual void append(const QString &);
%If (QScintilla_1_7 -)
virtual void autoCompleteFromAll();
%End
virtual void autoCompleteFromAPIs();
virtual void autoCompleteFromDocument();
virtual void callTip();
virtual void clear();
virtual void copy();
virtual void cut();
virtual void ensureCursorVisible();
virtual void ensureLineVisible(int);
%If (QScintilla_1_7 -)
virtual void foldAll(bool = 0);
%End
%If (- QScintilla_1_7)
virtual void foldAll();
%End
virtual void foldLine(int);
virtual void indent(int);
%If (QScintilla_1_4 -)
virtual void insert(const QString &);
%End
virtual void insertAt(const QString &,int,int);
virtual void moveToMatchingBrace();
virtual void paste();
virtual void redo();
virtual void removeSelectedText();
%If (QScintilla_1_4 -)
virtual void resetSelectionBackgroundColor();
virtual void resetSelectionForegroundColor();
%End
virtual void selectAll(bool = 1);
virtual void selectToMatchingBrace();
virtual void setAutoCompletionCaseSensitivity(bool);
virtual void setAutoCompletionReplaceWord(bool);
virtual void setAutoCompletionShowSingle(bool);
virtual void setAutoCompletionSource(AutoCompletionSource);
virtual void setAutoCompletionThreshold(int);
virtual void setAutoIndent(bool);
virtual void setBraceMatching(BraceMatch);
virtual void setBackspaceUnindents(bool);
%If (QScintilla_1_3 -)
virtual void setCaretForegroundColor(const QColor &);
virtual void setCaretLineBackgroundColor(const QColor &);
virtual void setCaretLineVisible(bool);
virtual void setCaretWidth(int);
%End
%If (QScintilla_1_7 -)
virtual void setColor(const QColor &);
%End
virtual void setCursorPosition(int,int);
virtual void setEolMode(EolMode);
virtual void setEolVisibility(bool);
virtual void setFolding(FoldStyle);
virtual void setIndentation(int,int);
virtual void setIndentationGuides(bool);
virtual void setIndentationGuidesBackgroundColor(const QColor &);
virtual void setIndentationGuidesForegroundColor(const QColor &);
virtual void setIndentationsUseTabs(bool);
virtual void setIndentationWidth(int);
virtual void setLexer(QextScintillaLexer * = 0);
virtual void setMarginsBackgroundColor(const QColor &);
virtual void setMarginsFont(const QFont &);
virtual void setMarginsForegroundColor(const QColor &);
virtual void setMarginLineNumbers(int,bool);
virtual void setMarginMarkerMask(int,int);
virtual void setMarginSensitivity(int,bool);
virtual void setMarginWidth(int,int);
virtual void setMarginWidth(int,const QString &);
virtual void setModified(bool);
%If (QScintilla_1_7 -)
virtual void setPaper(const QColor &);
%End
virtual void setReadOnly(bool);
virtual void setSelection(int,int,int,int);
%If (QScintilla_1_3 -)
virtual void setSelectionBackgroundColor(const QColor &);
virtual void setSelectionForegroundColor(const QColor &);
%End
virtual void setTabIndents(bool);
virtual void setTabWidth(int);
virtual void setText(const QString &);
virtual void setUtf8(bool);
virtual void setWhitespaceVisibility(WhitespaceVisibility);
%If (QScintilla_1_4 -)
virtual void setWrapMode(WrapMode);
%End
virtual void undo();
virtual void unindent(int);
virtual void zoomIn(int);
virtual void zoomIn();
virtual void zoomOut(int);
virtual void zoomOut();
virtual void zoomTo(int);
signals:
void cursorPositionChanged(int,int);
void copyAvailable(bool);
void marginClicked(int,int,Qt::ButtonState);
void modificationAttempted();
void modificationChanged(bool);
void selectionChanged();
void textChanged();
%If (QScintilla_1_7 -)
void userListActivated(int, const QString &);
%End
private:
QextScintilla(const QextScintilla &);
};
|