Initial commit: ReclassX structured binary editor

This commit is contained in:
sysadmin
2026-02-01 11:37:32 -07:00
commit 0be67c8396
786 changed files with 473499 additions and 0 deletions

50
third_party/qscintilla/Python/README vendored Normal file
View File

@@ -0,0 +1,50 @@
QScintilla - Python Bindings for the QScintilla Programmers Editor Widget
=========================================================================
QScintilla is a port to Qt of the Scintilla programmers editor widget. It
supports the traditional low-level Scintilla API and implements a high-level
API covering such things as auto-completion, code folding and lexer
configuration.
These Python bindings implement a single extension module that sits on top of
PyQt5 and wraps both the low-level and high-level APIs.
Author
------
QScintilla is copyright (c) Riverbank Computing Limited. Its homepage is
https://www.riverbankcomputing.com/software/qscintilla/.
Support may be obtained from the QScintilla mailing list at
https://www.riverbankcomputing.com/mailman/listinfo/qscintilla/.
License
-------
QScintilla is released under the GPL v3 license and under a commercial license
that allows for the development of proprietary applications.
Documentation
-------------
The documentation for the latest release can be found
`here <https://www.riverbankcomputing.com/static/Docs/QScintilla/>`__.
Installation
------------
The GPL version of QScintilla can be installed from PyPI::
pip install QScintilla
The wheels include a statically linked copy of the QScintilla C++ library.
``pip`` will also build and install the bindings from the sdist package but
Qt's ``qmake`` tool must be on ``PATH``.
The ``sip-install`` tool will also install the bindings from the sdist package
but will allow you to configure many aspects of the installation.

View File

@@ -0,0 +1,22 @@
#include <QCoreApplication>
#include <QFile>
#include <QTextStream>
#include <Qsci/qsciglobal.h>
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
QFile outf(argv[1]);
if (!outf.open(QIODevice::WriteOnly|QIODevice::Truncate|QIODevice::Text))
return 1;
QTextStream out(&outf);
out << QSCINTILLA_VERSION << '\n';
out << QSCINTILLA_VERSION_STR << '\n';
return 0;
}

212
third_party/qscintilla/Python/project.py vendored Normal file
View File

@@ -0,0 +1,212 @@
# This is the build script for the QScintilla Python bindings.
#
# Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
#
# This file is part of QScintilla.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import os
from pyqtbuild import PyQtBindings, PyQtProject
from sipbuild import Option
class QScintilla(PyQtProject):
""" The QScintilla project. """
def __init__(self):
""" Initialise the project. """
super().__init__()
self.bindings_factories = [Qsci]
# If there is a 'src' subdirectory then we are part of an sdist rather
# than a full source distribution. If part of an sdist then the
# QScintilla source is compiled along with the bindings. Otherwise an
# external (ie. already built) QScintilla library is used (which may be
# static or dynamic).
self.qsci_external_lib = not os.path.isdir('src')
def apply_user_defaults(self, tool):
""" Set default values for user options that haven't been set yet. """
super().apply_user_defaults(tool)
if not self.qsci_external_lib:
# If a directory to install the .api files was given then add the
# bundled .api files as well.
if self.api_dir:
self.wheel_includes.append(
('qsci/api/python/*.api', self.api_dir))
if self.qsci_translations_dir:
self.wheel_includes.append(
('src/*.qm', self.qsci_translations_dir))
def get_options(self):
""" Return the list of configurable options. """
options = super().get_options()
# The directory within the wheel to install the translation files to.
options.append(
Option('qsci_translations_dir',
help="the QScintilla translation files will be installed in DIR",
metavar="DIR", tools=['wheel']))
return options
class Qsci(PyQtBindings):
""" The Qsci bindings. """
def __init__(self, project):
""" Initialise the bindings. """
if project.qsci_external_lib:
qmake_CONFIG = ['qscintilla2']
else:
qmake_CONFIG = []
super().__init__(project, 'Qsci', qmake_CONFIG=qmake_CONFIG)
def apply_user_defaults(self, tool):
""" Set default values for user options that haven't been set yet. """
project = self.project
qt6 = (project.builder.qt_version >= 0x060000)
# Set the name of the .sip file now that we know the Qt version number.
self.sip_file = 'qscimod6.sip' if qt6 else 'qscimod5.sip'
if self.project.qsci_external_lib:
if self.qsci_features_dir is not None:
os.environ['QMAKEFEATURES'] = os.path.abspath(
self.qsci_features_dir)
if self.qsci_include_dir is not None:
self.include_dirs.append(
os.path.abspath(self.qsci_include_dir))
if self.qsci_library_dir is not None:
self.library_dirs.append(
os.path.abspath(self.qsci_library_dir))
else:
# We configure CONFIG and QT textually because it's too late to
# update qmake_CONFIG and qmake_QT.
self.builder_settings.append('QT += widgets')
if project.py_platform != 'ios':
self.builder_settings.append('QT += printsupport')
if project.py_platform in ('darwin', 'ios') and not qt6:
self.builder_settings.append('QT += macextras')
self.builder_settings.append(
'CONFIG += warn_off thread exceptions')
self.define_macros.extend(
['SCINTILLA_QT', 'SCI_LEXER',
'INCLUDE_DEPRECATED_FEATURES'])
self._add_internal_lib_sources()
super().apply_user_defaults(tool)
def get_options(self):
""" Return the list of configurable options. """
options = super().get_options()
if self.project.qsci_external_lib:
# The directory containing the features file.
options.append(
Option('qsci_features_dir',
help="the qscintilla2.prf features file is in DIR",
metavar="DIR"))
# The directory containing the include directory.
options.append(
Option('qsci_include_dir',
help="the Qsci include file directory is in DIR",
metavar="DIR"))
# The directory containing the library.
options.append(
Option('qsci_library_dir',
help="the QScintilla library is in DIR",
metavar="DIR"))
return options
def handle_test_output(self, test_output):
""" Handle the output from the external test program and return True if
the bindings are buildable.
"""
project = self.project
installed_version = int(test_output[0])
installed_version_str = test_output[1]
if project.version != installed_version:
project.progress(
"QScintilla v{0} is required but QScintilla v{1} is "
"installed.".format(project.version_str,
installed_version_str))
return False
return True
def is_buildable(self):
""" Return True if the bindings are buildable. """
# We need to check the compatibility of an external QScintilla library.
if self.project.qsci_external_lib:
return super().is_buildable()
return True
def _add_dir_sources(self, dname):
""" Add the headers and sources from a particular directory. """
for fn in os.listdir(dname):
# Skip the printer support on iOS.
if self.project.py_platform == 'ios' and fn.startswith('qsciprinter.'):
continue
if fn.endswith('.h'):
self.headers.append(os.path.join(dname, fn))
elif fn.endswith('.cpp'):
self.sources.append(os.path.join(dname, fn))
def _add_internal_lib_sources(self):
""" Add to the lists of include directories, header files and source
files to build the QScintilla library.
"""
include_dirs = ['src']
for dn in ('include', 'lexers', 'lexlib', 'src'):
include_dirs.append(os.path.join('scintilla', dn))
self._add_dir_sources(os.path.join('src', 'Qsci'))
for dn in include_dirs:
self._add_dir_sources(dn)
self.include_dirs.extend(include_dirs)

View File

@@ -0,0 +1,16 @@
# Specify the build system.
[build-system]
requires = ["sip >=6.0.2, <7", "PyQt-builder >=1.6, <2"]
build-backend = "sipbuild.api"
# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
name = "QScintilla"
version = "2.14.1"
summary = "Python bindings for the QScintilla programmers editor widget"
home-page = "https://www.riverbankcomputing.com/software/qscintilla/"
author = "Riverbank Computing Limited"
author-email = "info@riverbankcomputing.com"
license = "GPL v3"
description-file = "README"
requires-dist = "PyQt5 (>=5.15.4)"

View File

@@ -0,0 +1,16 @@
# Specify the build system.
[build-system]
requires = ["sip >=6.0.2, <7", "PyQt-builder >=1.6, <2"]
build-backend = "sipbuild.api"
# Specify the PEP 566 metadata for the project.
[tool.sip.metadata]
name = "PyQt6-QScintilla"
version = "2.14.1"
summary = "Python bindings for the QScintilla programmers editor widget"
home-page = "https://www.riverbankcomputing.com/software/qscintilla/"
author = "Riverbank Computing Limited"
author-email = "info@riverbankcomputing.com"
license = "GPL v3"
description-file = "README"
requires-dist = "PyQt6 (>=6.0.3)"

View File

@@ -0,0 +1,42 @@
// This is the SIP interface definition for QsciAbstractAPIs.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciAbstractAPIs : QObject
{
%TypeHeaderCode
#include <Qsci/qsciabstractapis.h>
%End
public:
QsciAbstractAPIs(QsciLexer *lexer /TransferThis/);
virtual ~QsciAbstractAPIs();
QsciLexer *lexer() const;
virtual void updateAutoCompletionList(const QStringList &context,
QStringList &list /In, Out/) = 0;
virtual void autoCompletionSelected(const QString &selection);
virtual QStringList callTips(const QStringList &context, int commas,
QsciScintilla::CallTipsStyle style, QList<int> &shifts) = 0;
private:
QsciAbstractAPIs(const QsciAbstractAPIs &);
};

View File

@@ -0,0 +1,58 @@
// This is the SIP interface definition for QsciAPIs.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciAPIs : QsciAbstractAPIs
{
%TypeHeaderCode
#include <Qsci/qsciapis.h>
%End
public:
QsciAPIs(QsciLexer *lexer /TransferThis/);
virtual ~QsciAPIs();
void add(const QString &entry);
void clear();
bool load(const QString &fname);
void remove(const QString &entry);
void prepare();
void cancelPreparation();
QString defaultPreparedName() const;
bool isPrepared(const QString &filename = QString()) const;
bool loadPrepared(const QString &filename = QString());
bool savePrepared(const QString &filename = QString()) const;
virtual bool event(QEvent *e);
QStringList installedAPIFiles() const;
virtual void updateAutoCompletionList(const QStringList &context,
QStringList &list /In, Out/);
virtual void autoCompletionSelected(const QString &selection);
virtual QStringList callTips(const QStringList &context, int commas,
QsciScintilla::CallTipsStyle style, QList<int> &shifts);
signals:
void apiPreparationCancelled();
void apiPreparationStarted();
void apiPreparationFinished();
private:
QsciAPIs(const QsciAPIs &);
};

View File

@@ -0,0 +1,143 @@
// This is the SIP interface definition for QsciCommand.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciCommand
{
%TypeHeaderCode
#include <Qsci/qscicommand.h>
%End
public:
enum Command {
LineDown,
LineDownExtend,
LineDownRectExtend,
LineScrollDown,
LineUp,
LineUpExtend,
LineUpRectExtend,
LineScrollUp,
ScrollToStart,
ScrollToEnd,
VerticalCentreCaret,
ParaDown,
ParaDownExtend,
ParaUp,
ParaUpExtend,
CharLeft,
CharLeftExtend,
CharLeftRectExtend,
CharRight,
CharRightExtend,
CharRightRectExtend,
WordLeft,
WordLeftExtend,
WordRight,
WordRightExtend,
WordLeftEnd,
WordLeftEndExtend,
WordRightEnd,
WordRightEndExtend,
WordPartLeft,
WordPartLeftExtend,
WordPartRight,
WordPartRightExtend,
Home,
HomeExtend,
HomeRectExtend,
HomeDisplay,
HomeDisplayExtend,
HomeWrap,
HomeWrapExtend,
VCHome,
VCHomeExtend,
VCHomeRectExtend,
VCHomeWrap,
VCHomeWrapExtend,
LineEnd,
LineEndExtend,
LineEndRectExtend,
LineEndDisplay,
LineEndDisplayExtend,
LineEndWrap,
LineEndWrapExtend,
DocumentStart,
DocumentStartExtend,
DocumentEnd,
DocumentEndExtend,
PageUp,
PageUpExtend,
PageUpRectExtend,
PageDown,
PageDownExtend,
PageDownRectExtend,
StutteredPageUp,
StutteredPageUpExtend,
StutteredPageDown,
StutteredPageDownExtend,
Delete,
DeleteBack,
DeleteBackNotLine,
DeleteWordLeft,
DeleteWordRight,
DeleteWordRightEnd,
DeleteLineLeft,
DeleteLineRight,
LineDelete,
LineCut,
LineCopy,
LineTranspose,
LineDuplicate,
SelectAll,
MoveSelectedLinesUp,
MoveSelectedLinesDown,
SelectionDuplicate,
SelectionLowerCase,
SelectionUpperCase,
SelectionCut,
SelectionCopy,
Paste,
EditToggleOvertype,
Newline,
Formfeed,
Tab,
Backtab,
Cancel,
Undo,
Redo,
ZoomIn,
ZoomOut,
ReverseLines,
};
Command command() const;
void execute();
void setKey(int key);
void setAlternateKey(int altkey);
int key() const;
int alternateKey() const;
static bool validKey(int key);
QString description() const;
private:
QsciCommand(QsciScintilla *qs, Command cmd, int key, int altkey,
const char *desc);
QsciCommand(const QsciCommand &);
};

View File

@@ -0,0 +1,44 @@
// This is the SIP interface definition for the QsciCommandSet.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciCommandSet
{
%TypeHeaderCode
#include <Qsci/qscicommandset.h>
%End
public:
bool readSettings(QSettings &qs, const char *prefix = "/Scintilla");
bool writeSettings(QSettings &qs, const char *prefix = "/Scintilla");
QList<QsciCommand *> &commands();
void clearKeys();
void clearAlternateKeys();
QsciCommand *boundTo(int key) const;
QsciCommand *find(QsciCommand::Command command) const;
private:
QsciCommandSet(QsciScintilla *qs);
~QsciCommandSet();
QsciCommandSet(const QsciCommandSet &);
};

View File

@@ -0,0 +1,32 @@
// This is the SIP interface definition for QsciDocument.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciDocument
{
%TypeHeaderCode
#include <Qsci/qscidocument.h>
%End
public:
QsciDocument();
virtual ~QsciDocument();
QsciDocument(const QsciDocument &);
};

View File

@@ -0,0 +1,90 @@
// This is the SIP interface definition for QsciLexer.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexer : QObject
{
%TypeHeaderCode
#include <Qsci/qscilexer.h>
%End
public:
QsciLexer(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexer();
virtual const char *language() const = 0;
virtual const char *lexer() const;
virtual int lexerId() const;
QsciAbstractAPIs *apis() const;
virtual const char *autoCompletionFillups() const /Encoding="None"/;
virtual QStringList autoCompletionWordSeparators() const;
int autoIndentStyle();
virtual const char *blockEnd(int *style = 0) const /Encoding="None"/;
virtual int blockLookback() const;
virtual const char *blockStart(int *style = 0) const /Encoding="None"/;
virtual const char *blockStartKeyword(int *style = 0) const /Encoding="None"/;
virtual int braceStyle() const;
virtual bool caseSensitive() const;
virtual QColor color(int style) const;
virtual bool eolFill(int style) const;
virtual QFont font(int style) const;
virtual int indentationGuideView() const;
virtual const char *keywords(int set) const;
virtual QString description(int style) const = 0;
virtual QColor paper(int style) const;
QColor defaultColor() const;
virtual QColor defaultColor(int style) const;
virtual bool defaultEolFill(int style) const;
QFont defaultFont() const;
virtual QFont defaultFont(int style) const;
QColor defaultPaper() const;
virtual QColor defaultPaper(int style) const;
virtual int defaultStyle() const;
QsciScintilla *editor() const;
virtual void refreshProperties();
void setAPIs(QsciAbstractAPIs *apis);
void setDefaultColor(const QColor &c);
void setDefaultFont(const QFont &f);
void setDefaultPaper(const QColor &c);
virtual int styleBitsNeeded() const;
virtual const char *wordCharacters() const;
bool readSettings(QSettings &qs, const char *prefix = "/Scintilla");
bool writeSettings(QSettings &qs, const char *prefix = "/Scintilla") const;
public slots:
virtual void setAutoIndentStyle(int autoindentstyle);
virtual void setColor(const QColor &c, int style = -1);
virtual void setEolFill(bool eolfill, int style = -1);
virtual void setFont(const QFont &f, int style = -1);
virtual void setPaper(const QColor &c, int style = -1);
signals:
void colorChanged(const QColor &c, int style);
void eolFillChanged(bool eolfilled, int style);
void fontChanged(const QFont &f, int style);
void paperChanged(const QColor &c, int style);
void propertyChanged(const char *prop, const char *val);
protected:
virtual bool readProperties(QSettings &qs, const QString &prefix);
virtual bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexer(const QsciLexer &);
};

View File

@@ -0,0 +1,74 @@
// This is the SIP interface definition for QsciLexerAsm.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerAsm : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerasm.h>
%End
public:
enum {
Default,
Comment,
Number,
DoubleQuotedString,
Operator,
Identifier,
CPUInstruction,
FPUInstruction,
Register,
Directive,
DirectiveOperand,
BlockComment,
SingleQuotedString,
UnclosedString,
ExtendedInstruction,
CommentDirective,
};
QsciLexerAsm(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerAsm();
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
QChar commentDelimiter() const;
bool foldSyntaxBased() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
virtual void setCommentDelimiter(QChar delimeter);
virtual void setFoldSyntaxBased(bool syntax_based);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerAsm(const QsciLexerAsm &);
};

View File

@@ -0,0 +1,73 @@
// This is the SIP interface definition for QsciLexerAVS.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerAVS : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexeravs.h>
%End
public:
enum {
Default,
BlockComment,
NestedBlockComment,
LineComment,
Number,
Operator,
Identifier,
String,
TripleString,
Keyword,
Filter,
Plugin,
Function,
ClipProperty,
KeywordSet6
};
QsciLexerAVS(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerAVS();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
int braceStyle() const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerAVS(const QsciLexerAVS &);
};

View File

@@ -0,0 +1,74 @@
// This is the SIP interface definition for QsciLexerBash.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerBash : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerbash.h>
%End
public:
enum {
Default,
Error,
Comment,
Number,
Keyword,
DoubleQuotedString,
SingleQuotedString,
Operator,
Identifier,
Scalar,
ParameterExpansion,
Backticks,
HereDocumentDelimiter,
SingleQuotedHereDocument
};
QsciLexerBash(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerBash();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
int braceStyle() const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerBash(const QsciLexerBash &);
};

View File

@@ -0,0 +1,56 @@
// This is the SIP interface definition for QsciLexerBatch.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerBatch : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerbatch.h>
%End
public:
enum {
Default,
Comment,
Keyword,
Label,
HideCommandChar,
ExternalCommand,
Variable,
Operator
};
QsciLexerBatch(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerBatch();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
bool caseSensitive() const;
private:
QsciLexerBatch(const QsciLexerBatch &);
};

View File

@@ -0,0 +1,69 @@
// This is the SIP interface definition for QsciLexerCMake.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerCMake : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexercmake.h>
%End
public:
enum {
Default,
Comment,
String,
StringLeftQuote,
StringRightQuote,
Function,
Variable,
Label,
KeywordSet3,
BlockWhile,
BlockForeach,
BlockIf,
BlockMacro,
StringVariable,
Number
};
QsciLexerCMake(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerCMake();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
void refreshProperties();
bool foldAtElse() const;
public slots:
virtual void setFoldAtElse(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerCMake(const QsciLexerCMake &);
};

View File

@@ -0,0 +1,90 @@
// This is the SIP interface definition for QsciLexerCoffeeScript.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerCoffeeScript : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexercoffeescript.h>
%End
public:
enum {
Default,
Comment,
CommentLine,
CommentDoc,
Number,
Keyword,
DoubleQuotedString,
SingleQuotedString,
UUID,
PreProcessor,
Operator,
Identifier,
UnclosedString,
VerbatimString,
Regex,
CommentLineDoc,
KeywordSet2,
CommentDocKeyword,
CommentDocKeywordError,
GlobalClass,
CommentBlock,
BlockRegex,
BlockRegexComment,
InstanceProperty,
};
QsciLexerCoffeeScript(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerCoffeeScript();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
QStringList autoCompletionWordSeparators() const;
const char *blockEnd(int *style = 0) const /Encoding="None"/;
const char *blockStart(int *style = 0) const /Encoding="None"/;
const char *blockStartKeyword(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
void refreshProperties();
bool dollarsAllowed() const;
void setDollarsAllowed(bool allowed);
bool foldComments() const;
void setFoldComments(bool fold);
bool foldCompact() const;
void setFoldCompact(bool fold);
bool stylePreprocessor() const;
void setStylePreprocessor(bool style);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerCoffeeScript(const QsciLexerCoffeeScript &);
};

View File

@@ -0,0 +1,138 @@
// This is the SIP interface definition for QsciLexerCPP.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerCPP : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexercpp.h>
%End
public:
enum {
Default,
InactiveDefault,
Comment,
InactiveComment,
CommentLine,
InactiveCommentLine,
CommentDoc,
InactiveCommentDoc,
Number,
InactiveNumber,
Keyword,
InactiveKeyword,
DoubleQuotedString,
InactiveDoubleQuotedString,
SingleQuotedString,
InactiveSingleQuotedString,
UUID,
InactiveUUID,
PreProcessor,
InactivePreProcessor,
Operator,
InactiveOperator,
Identifier,
InactiveIdentifier,
UnclosedString,
InactiveUnclosedString,
VerbatimString,
InactiveVerbatimString,
Regex,
InactiveRegex,
CommentLineDoc,
InactiveCommentLineDoc,
KeywordSet2,
InactiveKeywordSet2,
CommentDocKeyword,
InactiveCommentDocKeyword,
CommentDocKeywordError,
InactiveCommentDocKeywordError,
GlobalClass,
InactiveGlobalClass,
RawString,
InactiveRawString,
TripleQuotedVerbatimString,
InactiveTripleQuotedVerbatimString,
HashQuotedString,
InactiveHashQuotedString,
PreProcessorComment,
InactivePreProcessorComment,
PreProcessorCommentLineDoc,
InactivePreProcessorCommentLineDoc,
UserLiteral,
InactiveUserLiteral,
TaskMarker,
InactiveTaskMarker,
EscapeSequence,
InactiveEscapeSequence,
};
QsciLexerCPP(QObject *parent /TransferThis/ = 0,
bool caseInsensitiveKeywords = false);
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
QStringList autoCompletionWordSeparators() const;
const char *blockEnd(int *style = 0) const /Encoding="None"/;
const char *blockStart(int *style = 0) const /Encoding="None"/;
const char *blockStartKeyword(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
void refreshProperties();
bool foldAtElse() const;
bool foldComments() const;
bool foldCompact() const;
bool foldPreprocessor() const;
bool stylePreprocessor() const;
void setDollarsAllowed(bool allowed);
bool dollarsAllowed() const;
void setHighlightTripleQuotedStrings(bool enable);
bool highlightTripleQuotedStrings() const;
void setHighlightHashQuotedStrings(bool enable);
bool highlightHashQuotedStrings() const;
void setHighlightBackQuotedStrings(bool enabled);
bool highlightBackQuotedStrings() const;
void setHighlightEscapeSequences(bool enabled);
bool highlightEscapeSequences() const;
void setVerbatimStringEscapeSequencesAllowed(bool allowed);
bool verbatimStringEscapeSequencesAllowed() const;
public slots:
virtual void setFoldAtElse(bool fold);
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
virtual void setFoldPreprocessor(bool fold);
virtual void setStylePreprocessor(bool style);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerCPP(const QsciLexerCPP &);
};

View File

@@ -0,0 +1,41 @@
// This is the SIP interface definition for QsciLexerCSharp.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerCSharp : QsciLexerCPP
{
%TypeHeaderCode
#include <Qsci/qscilexercsharp.h>
%End
public:
QsciLexerCSharp(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerCSharp();
const char *language() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
private:
QsciLexerCSharp(const QsciLexerCSharp &);
};

View File

@@ -0,0 +1,88 @@
// This is the SIP interface definition for QsciLexerCSS.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerCSS : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexercss.h>
%End
public:
enum {
Default,
Tag,
ClassSelector,
PseudoClass,
UnknownPseudoClass,
Operator,
CSS1Property,
UnknownProperty,
Value,
Comment,
IDSelector,
Important,
AtRule,
DoubleQuotedString,
SingleQuotedString,
CSS2Property,
Attribute,
CSS3Property,
PseudoElement,
ExtendedCSSProperty,
ExtendedPseudoClass,
ExtendedPseudoElement,
MediaRule,
Variable,
};
QsciLexerCSS(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerCSS();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
const char *blockEnd(int *style = 0) const /Encoding="None"/;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
void setHSSLanguage(bool enable);
bool HSSLanguage() const;
void setLessLanguage(bool enable);
bool LessLanguage() const;
void setSCSSLanguage(bool enable);
bool SCSSLanguage() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerCSS(const QsciLexerCSS &);
};

View File

@@ -0,0 +1,42 @@
// This is the SIP interface definition for QsciLexerCustom.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerCustom : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexercustom.h>
%End
public:
QsciLexerCustom(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerCustom();
virtual void setEditor(QsciScintilla *editor);
virtual int styleBitsNeeded() const;
void setStyling(int length, int style);
void setStyling(int length, const QsciStyle &style);
void startStyling(int pos, int styleBits = 0);
virtual void styleText(int start, int end) = 0;
private:
QsciLexerCustom(const QsciLexerCustom &);
};

View File

@@ -0,0 +1,88 @@
// This is the SIP interface definition for QsciLexerD.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerD : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerd.h>
%End
public:
enum {
Default,
Comment,
CommentLine,
CommentDoc,
CommentNested,
Number,
Keyword,
KeywordSecondary,
KeywordDoc,
Typedefs,
String,
UnclosedString,
Character,
Operator,
Identifier,
CommentLineDoc,
CommentDocKeyword,
CommentDocKeywordError,
BackquoteString,
RawString,
KeywordSet5,
KeywordSet6,
KeywordSet7,
};
QsciLexerD(QObject *parent /TransferThis/ = 0);
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
QStringList autoCompletionWordSeparators() const;
const char *blockEnd(int *style = 0) const /Encoding="None"/;
const char *blockStart(int *style = 0) const /Encoding="None"/;
const char *blockStartKeyword(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
void refreshProperties();
bool foldAtElse() const;
bool foldComments() const;
bool foldCompact() const;
public slots:
virtual void setFoldAtElse(bool fold);
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerD(const QsciLexerD &);
};

View File

@@ -0,0 +1,54 @@
// This is the SIP interface definition for QsciLexerDiff.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerDiff : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerdiff.h>
%End
public:
enum {
Default,
Comment,
Command,
Header,
Position,
LineRemoved,
LineAdded,
LineChanged,
AddingPatchAdded,
RemovingPatchAdded,
AddingPatchRemoved,
RemovingPatchRemoved,
};
QsciLexerDiff(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerDiff();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QString description(int style) const;
const char *wordCharacters() const;
private:
QsciLexerDiff(const QsciLexerDiff &);
};

View File

@@ -0,0 +1,50 @@
// This is the SIP interface definition for QsciLexerEDIFACT.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerEDIFACT : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexeredifact.h>
%End
public:
enum {
Default,
SegmentStart,
SegmentEnd,
ElementSeparator,
CompositeSeparator,
ReleaseSeparator,
UNASegmentHeader,
UNHSegmentHeader,
BadSegment
};
QsciLexerEDIFACT(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerEDIFACT();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QString description(int style) const;
private:
QsciLexerEDIFACT(const QsciLexerEDIFACT &);
};

View File

@@ -0,0 +1,36 @@
// This is the SIP interface definition for QsciLexerFortran.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerFortran : QsciLexerFortran77
{
%TypeHeaderCode
#include <Qsci/qscilexerfortran.h>
%End
public:
QsciLexerFortran(QObject *parent /TransferThis/ = 0);
const char *language() const;
const char *lexer() const;
const char *keywords(int set) const;
private:
QsciLexerFortran(const QsciLexerFortran &);
};

View File

@@ -0,0 +1,71 @@
// This is the SIP interface definition for QsciLexerFortran77.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerFortran77 : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerfortran77.h>
%End
public:
enum {
Default,
Comment,
Number,
SingleQuotedString,
DoubleQuotedString,
UnclosedString,
Operator,
Identifier,
Keyword,
IntrinsicFunction,
ExtendedFunction,
PreProcessor,
DottedOperator,
Label,
Continuation,
};
QsciLexerFortran77(QObject *parent /TransferThis/ = 0);
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
int braceStyle() const;
void refreshProperties();
bool foldCompact() const;
public slots:
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerFortran77(const QsciLexerFortran77 &);
};

View File

@@ -0,0 +1,58 @@
// This is the SIP interface definition for QsciLexerHex.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerHex : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerhex.h>
%End
public:
enum {
Default,
RecordStart,
RecordType,
UnknownRecordType,
ByteCount,
IncorrectByteCount,
NoAddress,
DataAddress,
RecordCount,
StartAddress,
ExtendedAddress,
OddData,
EvenData,
UnknownData,
Checksum,
IncorrectChecksum,
TrailingGarbage,
};
QsciLexerHex(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerHex();
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
QString description(int style) const;
private:
QsciLexerHex(const QsciLexerHex &);
};

View File

@@ -0,0 +1,181 @@
// This is the SIP interface definition for QsciLexerHTML.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerHTML : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerhtml.h>
%End
public:
enum {
Default,
Tag,
UnknownTag,
Attribute,
UnknownAttribute,
HTMLNumber,
HTMLDoubleQuotedString,
HTMLSingleQuotedString,
OtherInTag,
HTMLComment,
Entity,
XMLTagEnd,
XMLStart,
XMLEnd,
Script,
ASPAtStart,
ASPStart,
CDATA,
PHPStart,
HTMLValue,
ASPXCComment,
SGMLDefault,
SGMLCommand,
SGMLParameter,
SGMLDoubleQuotedString,
SGMLSingleQuotedString,
SGMLError,
SGMLSpecial,
SGMLEntity,
SGMLComment,
SGMLParameterComment,
SGMLBlockDefault,
JavaScriptStart,
JavaScriptDefault,
JavaScriptComment,
JavaScriptCommentLine,
JavaScriptCommentDoc,
JavaScriptNumber,
JavaScriptWord,
JavaScriptKeyword,
JavaScriptDoubleQuotedString,
JavaScriptSingleQuotedString,
JavaScriptSymbol,
JavaScriptUnclosedString,
JavaScriptRegex,
ASPJavaScriptStart,
ASPJavaScriptDefault,
ASPJavaScriptComment,
ASPJavaScriptCommentLine,
ASPJavaScriptCommentDoc,
ASPJavaScriptNumber,
ASPJavaScriptWord,
ASPJavaScriptKeyword,
ASPJavaScriptDoubleQuotedString,
ASPJavaScriptSingleQuotedString,
ASPJavaScriptSymbol,
ASPJavaScriptUnclosedString,
ASPJavaScriptRegex,
VBScriptStart,
VBScriptDefault,
VBScriptComment,
VBScriptNumber,
VBScriptKeyword,
VBScriptString,
VBScriptIdentifier,
VBScriptUnclosedString,
ASPVBScriptStart,
ASPVBScriptDefault,
ASPVBScriptComment,
ASPVBScriptNumber,
ASPVBScriptKeyword,
ASPVBScriptString,
ASPVBScriptIdentifier,
ASPVBScriptUnclosedString,
PythonStart,
PythonDefault,
PythonComment,
PythonNumber,
PythonDoubleQuotedString,
PythonSingleQuotedString,
PythonKeyword,
PythonTripleSingleQuotedString,
PythonTripleDoubleQuotedString,
PythonClassName,
PythonFunctionMethodName,
PythonOperator,
PythonIdentifier,
ASPPythonStart,
ASPPythonDefault,
ASPPythonComment,
ASPPythonNumber,
ASPPythonDoubleQuotedString,
ASPPythonSingleQuotedString,
ASPPythonKeyword,
ASPPythonTripleSingleQuotedString,
ASPPythonTripleDoubleQuotedString,
ASPPythonClassName,
ASPPythonFunctionMethodName,
ASPPythonOperator,
ASPPythonIdentifier,
PHPDefault,
PHPDoubleQuotedString,
PHPSingleQuotedString,
PHPKeyword,
PHPNumber,
PHPVariable,
PHPComment,
PHPCommentLine,
PHPDoubleQuotedVariable,
PHPOperator
};
QsciLexerHTML(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerHTML();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
const char *autoCompletionFillups() const /Encoding="None"/;
bool caseSensitive() const;
void refreshProperties();
bool caseSensitiveTags() const;
void setDjangoTemplates(bool enable);
bool djangoTemplates() const;
bool foldCompact() const;
bool foldPreprocessor() const;
void setFoldScriptComments(bool fold);
bool foldScriptComments() const;
void setFoldScriptHeredocs(bool fold);
bool foldScriptHeredocs() const;
void setMakoTemplates(bool enable);
bool makoTemplates() const;
public slots:
virtual void setFoldCompact(bool fold);
virtual void setFoldPreprocessor(bool fold);
virtual void setCaseSensitiveTags(bool sens);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerHTML(const QsciLexerHTML &);
};

View File

@@ -0,0 +1,38 @@
// This is the SIP interface definition for QsciLexerIDL.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerIDL : QsciLexerCPP
{
%TypeHeaderCode
#include <Qsci/qscilexeridl.h>
%End
public:
QsciLexerIDL(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerIDL();
const char *language() const;
QColor defaultColor(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
private:
QsciLexerIDL(const QsciLexerIDL &);
};

View File

@@ -0,0 +1,37 @@
// This is the SIP interface definition for QsciLexerIntelHex.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerIntelHex : QsciLexerHex
{
%TypeHeaderCode
#include <Qsci/qscilexerintelhex.h>
%End
public:
QsciLexerIntelHex(QObject *parent = 0);
virtual ~QsciLexerIntelHex();
const char *language() const;
const char *lexer() const;
QString description(int style) const;
private:
QsciLexerIntelHex(const QsciLexerIntelHex &);
};

View File

@@ -0,0 +1,36 @@
// This is the SIP interface definition for QsciLexerJava.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerJava : QsciLexerCPP
{
%TypeHeaderCode
#include <Qsci/qscilexerjava.h>
%End
public:
QsciLexerJava(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerJava();
const char *language() const;
const char *keywords(int set) const;
private:
QsciLexerJava(const QsciLexerJava &);
};

View File

@@ -0,0 +1,41 @@
// This is the SIP interface definition for QsciLexerJavaScript.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerJavaScript : QsciLexerCPP
{
%TypeHeaderCode
#include <Qsci/qscilexerjavascript.h>
%End
public:
QsciLexerJavaScript(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerJavaScript();
const char *language() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
private:
QsciLexerJavaScript(const QsciLexerJavaScript &);
};

View File

@@ -0,0 +1,71 @@
// This is the SIP interface definition for QsciLexerJSON.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerJSON : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerjson.h>
%End
public:
enum {
Default,
Number,
String,
UnclosedString,
Property,
EscapeSequence,
CommentLine,
CommentBlock,
Operator,
IRI,
IRICompact,
Keyword,
KeywordLD,
Error,
};
QsciLexerJSON(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerJSON();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
void refreshProperties();
void setHighlightComments(bool highlight);
bool highlightComments() const;
void setHighlightEscapeSequences(bool highlight);
bool highlightEscapeSequences() const;
void setFoldCompact(bool fold);
bool foldCompact() const;
protected:
bool readProperties(QSettings &qs,const QString &prefix);
bool writeProperties(QSettings &qs,const QString &prefix) const;
private:
QsciLexerJSON(const QsciLexerJSON &);
};

View File

@@ -0,0 +1,79 @@
// This is the SIP interface definition for QsciLexerLua.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerLua : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerlua.h>
%End
public:
enum {
Default,
Comment,
LineComment,
Number,
Keyword,
String,
Character,
LiteralString,
Preprocessor,
Operator,
Identifier,
UnclosedString,
BasicFunctions,
StringTableMathsFunctions,
CoroutinesIOSystemFacilities,
KeywordSet5,
KeywordSet6,
KeywordSet7,
KeywordSet8,
Label,
};
QsciLexerLua(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerLua();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
QStringList autoCompletionWordSeparators() const;
const char *blockStart(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
void refreshProperties();
bool foldCompact() const;
public slots:
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerLua(const QsciLexerLua &);
};

View File

@@ -0,0 +1,52 @@
// This is the SIP interface definition for QsciLexerMakefile.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerMakefile : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexermakefile.h>
%End
public:
enum {
Default,
Comment,
Preprocessor,
Variable,
Operator,
Target,
Error
};
QsciLexerMakefile(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerMakefile();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
QString description(int style) const;
const char *wordCharacters() const;
private:
QsciLexerMakefile(const QsciLexerMakefile &);
};

View File

@@ -0,0 +1,65 @@
// This is the SIP interface definition for QsciLexerMarkdown.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerMarkdown : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexermarkdown.h>
%End
public:
enum {
Default,
Special,
StrongEmphasisAsterisks,
StrongEmphasisUnderscores,
EmphasisAsterisks,
EmphasisUnderscores,
Header1,
Header2,
Header3,
Header4,
Header5,
Header6,
Prechar,
UnorderedListItem,
OrderedListItem,
BlockQuote,
StrikeOut,
HorizontalRule,
Link,
CodeBackticks,
CodeDoubleBackticks,
CodeBlock,
};
QsciLexerMarkdown(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerMarkdown();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
QString description(int style) const;
private:
QsciLexerMarkdown(const QsciLexerMarkdown &);
};

View File

@@ -0,0 +1,36 @@
// This is the SIP interface definition for QsciLexerMASM.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerMASM : QsciLexerAsm
{
%TypeHeaderCode
#include <Qsci/qscilexermasm.h>
%End
public:
QsciLexerMASM(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerMASM();
const char *language() const;
const char *lexer() const;
private:
QsciLexerMASM(const QsciLexerMASM &);
};

View File

@@ -0,0 +1,52 @@
// This is the SIP interface definition for QsciLexerMatlab.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerMatlab : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexermatlab.h>
%End
public:
enum {
Default,
Comment,
Command,
Number,
Keyword,
SingleQuotedString,
Operator,
Identifier,
DoubleQuotedString
};
QsciLexerMatlab(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerMatlab();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
private:
QsciLexerMatlab(const QsciLexerMatlab &);
};

View File

@@ -0,0 +1,36 @@
// This is the SIP interface definition for QsciLexerNASM.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerNASM : QsciLexerAsm
{
%TypeHeaderCode
#include <Qsci/qscilexernasm.h>
%End
public:
QsciLexerNASM(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerNASM();
const char *language() const;
const char *lexer() const;
private:
QsciLexerNASM(const QsciLexerNASM &);
};

View File

@@ -0,0 +1,37 @@
// This is the SIP interface definition for QsciLexerOctave.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerOctave : QsciLexerMatlab
{
%TypeHeaderCode
#include <Qsci/qscilexeroctave.h>
%End
public:
QsciLexerOctave(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerOctave();
const char *language() const;
const char *lexer() const;
const char *keywords(int set) const;
private:
QsciLexerOctave(const QsciLexerOctave &);
};

View File

@@ -0,0 +1,82 @@
// This is the SIP interface definition for QsciLexerPascal.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerPascal : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerpascal.h>
%End
public:
enum {
Default,
Identifier,
Comment,
CommentParenthesis,
CommentLine,
PreProcessor,
PreProcessorParenthesis,
Number,
HexNumber,
Keyword,
SingleQuotedString,
UnclosedString,
Character,
Operator,
Asm,
};
QsciLexerPascal(QObject *parent /TransferThis/ = 0);
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
QStringList autoCompletionWordSeparators() const;
const char *blockEnd(int *style = 0) const /Encoding="None"/;
const char *blockStart(int *style = 0) const /Encoding="None"/;
const char *blockStartKeyword(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
bool foldPreprocessor() const;
void setSmartHighlighting(bool enabled);
bool smartHighlighting() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
virtual void setFoldPreprocessor(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerPascal(const QsciLexerPascal &);
};

View File

@@ -0,0 +1,111 @@
// This is the SIP interface definition for QsciLexerPerl.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerPerl : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerperl.h>
%End
public:
enum {
Default,
Error,
Comment,
POD,
Number,
Keyword,
DoubleQuotedString,
SingleQuotedString,
Operator,
Identifier,
Scalar,
Array,
Hash,
SymbolTable,
Regex,
Substitution,
Backticks,
DataSection,
HereDocumentDelimiter,
SingleQuotedHereDocument,
DoubleQuotedHereDocument,
BacktickHereDocument,
QuotedStringQ,
QuotedStringQQ,
QuotedStringQX,
QuotedStringQR,
QuotedStringQW,
PODVerbatim,
SubroutinePrototype,
FormatIdentifier,
FormatBody,
DoubleQuotedStringVar,
Translation,
RegexVar,
SubstitutionVar,
BackticksVar,
DoubleQuotedHereDocumentVar,
BacktickHereDocumentVar,
QuotedStringQQVar,
QuotedStringQXVar,
QuotedStringQRVar,
};
QsciLexerPerl(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerPerl();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
QStringList autoCompletionWordSeparators() const;
const char *blockEnd(int *style = 0) const /Encoding="None"/;
const char *blockStart(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
void setFoldAtElse(bool fold);
bool foldAtElse() const;
void setFoldPackages(bool fold);
bool foldPackages() const;
void setFoldPODBlocks(bool fold);
bool foldPODBlocks() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerPerl(const QsciLexerPerl &);
};

View File

@@ -0,0 +1,69 @@
// This is the SIP interface definition for QsciLexerPO.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerPO : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerpo.h>
%End
public:
enum {
Default,
Comment,
MessageId,
MessageIdText,
MessageString,
MessageStringText,
MessageContext,
MessageContextText,
Fuzzy,
ProgrammerComment,
Reference,
Flags,
MessageIdTextEOL,
MessageStringTextEOL,
MessageContextTextEOL
};
QsciLexerPO(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerPO();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
QString description(int style) const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerPO(const QsciLexerPO &);
};

View File

@@ -0,0 +1,78 @@
// This is the SIP interface definition for QsciLexerPostScript.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerPostScript : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerpostscript.h>
%End
public:
enum {
Default,
Comment,
DSCComment,
DSCCommentValue,
Number,
Name,
Keyword,
Literal,
ImmediateEvalLiteral,
ArrayParenthesis,
DictionaryParenthesis,
ProcedureParenthesis,
Text,
HexString,
Base85String,
BadStringCharacter
};
QsciLexerPostScript(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerPostScript();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
int braceStyle() const;
void refreshProperties();
bool tokenize() const;
int level() const;
bool foldCompact() const;
bool foldAtElse() const;
public slots:
virtual void setTokenize(bool tokenize);
virtual void setLevel(int level);
virtual void setFoldCompact(bool fold);
virtual void setFoldAtElse(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerPostScript(const QsciLexerPostScript &);
};

View File

@@ -0,0 +1,79 @@
// This is the SIP interface definition for QsciLexerPOV.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerPOV : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerpov.h>
%End
public:
enum {
Default,
Comment,
CommentLine,
Number,
Operator,
Identifier,
String,
UnclosedString,
Directive,
BadDirective,
ObjectsCSGAppearance,
TypesModifiersItems,
PredefinedIdentifiers,
PredefinedFunctions,
KeywordSet6,
KeywordSet7,
KeywordSet8
};
QsciLexerPOV(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerPOV();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
int braceStyle() const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
bool foldDirectives() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
virtual void setFoldDirectives(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerPOV(const QsciLexerPOV &);
};

View File

@@ -0,0 +1,63 @@
// This is the SIP interface definition for QsciLexerProperties.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerProperties : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerproperties.h>
%End
public:
enum {
Default,
Comment,
Section,
Assignment,
DefaultValue,
Key
};
QsciLexerProperties(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerProperties();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
QString description(int style) const;
const char *wordCharacters() const;
void refreshProperties();
bool foldCompact() const;
void setInitialSpaces(bool enable);
bool initialSpaces() const;
public slots:
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerProperties(const QsciLexerProperties &);
};

View File

@@ -0,0 +1,105 @@
// This is the SIP interface definition for QsciLexerPython.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerPython : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerpython.h>
%End
public:
enum {
Default,
Comment,
Number,
DoubleQuotedString,
SingleQuotedString,
Keyword,
TripleSingleQuotedString,
TripleDoubleQuotedString,
ClassName,
FunctionMethodName,
Operator,
Identifier,
CommentBlock,
UnclosedString,
HighlightedIdentifier,
Decorator,
DoubleQuotedFString,
SingleQuotedFString,
TripleSingleQuotedFString,
TripleDoubleQuotedFString,
};
enum IndentationWarning {
NoWarning,
Inconsistent,
TabsAfterSpaces,
Spaces,
Tabs
};
QsciLexerPython(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerPython();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
QStringList autoCompletionWordSeparators() const;
int blockLookback() const;
const char *blockStart(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
int indentationGuideView() const;
void refreshProperties();
bool foldComments() const;
void setFoldCompact(bool fold);
bool foldCompact() const;
bool foldQuotes() const;
QsciLexerPython::IndentationWarning indentationWarning() const;
void setHighlightSubidentifiers(bool enabled);
bool highlightSubidentifiers() const;
void setStringsOverNewlineAllowed(bool allowed);
bool stringsOverNewlineAllowed() const;
void setV2UnicodeAllowed(bool allowed);
bool v2UnicodeAllowed() const;
void setV3BinaryOctalAllowed(bool allowed);
bool v3BinaryOctalAllowed() const;
void setV3BytesAllowed(bool allowed);
bool v3BytesAllowed() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldQuotes(bool fold);
virtual void setIndentationWarning(QsciLexerPython::IndentationWarning warn);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerPython(const QsciLexerPython &);
};

View File

@@ -0,0 +1,91 @@
// This is the SIP interface definition for QsciLexerRuby.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerRuby : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerruby.h>
%End
public:
enum {
Default,
Error,
Comment,
POD,
Number,
Keyword,
DoubleQuotedString,
SingleQuotedString,
ClassName,
FunctionMethodName,
Operator,
Identifier,
Regex,
Global,
Symbol,
ModuleName,
InstanceVariable,
ClassVariable,
Backticks,
DataSection,
HereDocumentDelimiter,
HereDocument,
PercentStringq,
PercentStringQ,
PercentStringx,
PercentStringr,
PercentStringw,
DemotedKeyword,
Stdin,
Stdout,
Stderr
};
QsciLexerRuby(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerRuby();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int) const;
QString description(int style) const;
const char *blockEnd(int *style = 0) const /Encoding="None"/;
const char *blockStart(int *style = 0) const /Encoding="None"/;
const char *blockStartKeyword(int *style = 0) const /Encoding="None"/;
int braceStyle() const;
void refreshProperties();
void setFoldComments(bool fold);
bool foldComments() const;
void setFoldCompact(bool fold);
bool foldCompact() const;
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerRuby(const QsciLexerRuby &);
};

View File

@@ -0,0 +1,54 @@
// This is the SIP interface definition for QsciLexerSpice.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerSpice : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerspice.h>
%End
public:
enum {
Default,
Identifier,
Command,
Function,
Parameter,
Number,
Delimiter,
Value,
Comment
};
QsciLexerSpice(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerSpice();
const char *language() const;
const char *lexer() const;
const char *keywords(int set) const;
QColor defaultColor(int style) const;
QFont defaultFont(int style) const;
QString description(int style) const;
int braceStyle() const;
private:
QsciLexerSpice(const QsciLexerSpice &);
};

View File

@@ -0,0 +1,93 @@
// This is the SIP interface definition for QsciLexerSQL.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerSQL : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexersql.h>
%End
public:
enum {
Default,
Comment,
CommentLine,
CommentDoc,
Number,
Keyword,
DoubleQuotedString,
SingleQuotedString,
PlusKeyword,
PlusPrompt,
Operator,
Identifier,
PlusComment,
CommentLineHash,
CommentDocKeyword,
CommentDocKeywordError,
KeywordSet5,
KeywordSet6,
KeywordSet7,
KeywordSet8,
QuotedIdentifier,
QuotedOperator,
};
QsciLexerSQL(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerSQL();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
int braceStyle() const;
void refreshProperties();
bool backslashEscapes() const;
void setDottedWords(bool enable);
bool dottedWords() const;
void setFoldAtElse(bool fold);
bool foldAtElse() const;
bool foldComments() const;
bool foldCompact() const;
void setFoldOnlyBegin(bool fold);
bool foldOnlyBegin() const;
void setHashComments(bool enable);
bool hashComments() const;
void setQuotedIdentifiers(bool enable);
bool quotedIdentifiers() const;
public slots:
virtual void setBackslashEscapes(bool enable);
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerSQL(const QsciLexerSQL &);
};

View File

@@ -0,0 +1,37 @@
// This is the SIP interface definition for QsciLexerSRec.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerSRec : QsciLexerHex
{
%TypeHeaderCode
#include <Qsci/qscilexersrec.h>
%End
public:
QsciLexerSRec(QObject *parent = 0);
virtual ~QsciLexerSRec();
const char *language() const;
const char *lexer() const;
QString description(int style) const;
private:
QsciLexerSRec(const QsciLexerSRec &);
};

View File

@@ -0,0 +1,77 @@
// This is the SIP interface definition for QsciLexerTCL.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerTCL : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexertcl.h>
%End
public:
enum {
Default,
Comment,
CommentLine,
Number,
QuotedKeyword,
QuotedString,
Operator,
Identifier,
Substitution,
SubstitutionBrace,
Modifier,
ExpandKeyword,
TCLKeyword,
TkKeyword,
ITCLKeyword,
TkCommand,
KeywordSet6,
KeywordSet7,
KeywordSet8,
KeywordSet9,
CommentBox,
CommentBlock
};
QsciLexerTCL(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerTCL();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
int braceStyle() const;
void refreshProperties();
void setFoldComments(bool fold);
bool foldComments() const;
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerTCL(const QsciLexerTCL &);
};

View File

@@ -0,0 +1,37 @@
// This is the SIP interface definition for QsciLexerTekHex.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerTekHex : QsciLexerHex
{
%TypeHeaderCode
#include <Qsci/qscilexertekhex.h>
%End
public:
QsciLexerTekHex(QObject *parent = 0);
virtual ~QsciLexerTekHex();
const char *language() const;
const char *lexer() const;
QString description(int style) const;
private:
QsciLexerTekHex(const QsciLexerTekHex &);
};

View File

@@ -0,0 +1,63 @@
// This is the SIP interface definition for QsciLexerTeX.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerTeX : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexertex.h>
%End
public:
enum {
Default,
Special,
Group,
Symbol,
Command,
Text
};
QsciLexerTeX(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerTeX();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
void refreshProperties();
void setFoldComments(bool fold);
bool foldComments() const;
void setFoldCompact(bool fold);
bool foldCompact() const;
void setProcessComments(bool enable);
bool processComments() const;
void setProcessIf(bool enable);
bool processIf() const;
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerTeX(const QsciLexerTeX &);
};

View File

@@ -0,0 +1,106 @@
// This is the SIP interface definition for QsciLexerVerilog.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerVerilog : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexerverilog.h>
%End
public:
enum {
Default,
InactiveDefault,
Comment,
InactiveComment,
CommentLine,
InactiveCommentLine,
CommentBang,
InactiveCommentBang,
Number,
InactiveNumber,
Keyword,
InactiveKeyword,
String,
InactiveString,
KeywordSet2,
InactiveKeywordSet2,
SystemTask,
InactiveSystemTask,
Preprocessor,
InactivePreprocessor,
Operator,
InactiveOperator,
Identifier,
InactiveIdentifier,
UnclosedString,
InactiveUnclosedString,
UserKeywordSet,
InactiveUserKeywordSet,
CommentKeyword,
InactiveCommentKeyword,
DeclareInputPort,
InactiveDeclareInputPort,
DeclareOutputPort,
InactiveDeclareOutputPort,
DeclareInputOutputPort,
InactiveDeclareInputOutputPort,
PortConnection,
InactivePortConnection,
};
QsciLexerVerilog(QObject *parent /TransferThis/ = 0);
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
const char *wordCharacters() const;
int braceStyle() const;
void refreshProperties();
void setFoldAtElse(bool fold);
bool foldAtElse() const;
void setFoldComments(bool fold);
bool foldComments() const;
void setFoldCompact(bool fold);
bool foldCompact() const;
void setFoldPreprocessor(bool fold);
bool foldPreprocessor() const;
void setFoldAtModule(bool fold);
bool foldAtModule() const;
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerVerilog(const QsciLexerVerilog &);
};

View File

@@ -0,0 +1,81 @@
// This is the SIP interface definition for QsciLexerVHDL.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerVHDL : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexervhdl.h>
%End
public:
enum {
Default,
Comment,
CommentLine,
Number,
String,
Operator,
Identifier,
UnclosedString,
Keyword,
StandardOperator,
Attribute,
StandardFunction,
StandardPackage,
StandardType,
KeywordSet7,
CommentBlock
};
QsciLexerVHDL(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerVHDL();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
int braceStyle() const;
void refreshProperties();
bool foldComments() const;
bool foldCompact() const;
bool foldAtElse() const;
bool foldAtBegin() const;
bool foldAtParenthesis() const;
public slots:
virtual void setFoldComments(bool fold);
virtual void setFoldCompact(bool fold);
virtual void setFoldAtElse(bool fold);
virtual void setFoldAtBegin(bool fold);
virtual void setFoldAtParenthesis(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerVHDL(const QsciLexerVHDL &);
};

View File

@@ -0,0 +1,49 @@
// This is the SIP interface definition for QsciLexerXML.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerXML : QsciLexerHTML
{
%TypeHeaderCode
#include <Qsci/qscilexerxml.h>
%End
public:
QsciLexerXML(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerXML();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
void refreshProperties();
void setScriptsStyled(bool styled);
bool scriptsStyled() const;
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerXML(const QsciLexerXML &);
};

View File

@@ -0,0 +1,65 @@
// This is the SIP interface definition for QsciLexerYAML.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciLexerYAML : QsciLexer
{
%TypeHeaderCode
#include <Qsci/qscilexeryaml.h>
%End
public:
enum {
Default,
Comment,
Identifier,
Keyword,
Number,
Reference,
DocumentDelimiter,
TextBlockMarker,
SyntaxErrorMarker,
Operator
};
QsciLexerYAML(QObject *parent /TransferThis/ = 0);
virtual ~QsciLexerYAML();
const char *language() const;
const char *lexer() const;
QColor defaultColor(int style) const;
bool defaultEolFill(int style) const;
QFont defaultFont(int style) const;
QColor defaultPaper(int style) const;
const char *keywords(int set) const;
QString description(int style) const;
void refreshProperties();
bool foldComments() const;
public slots:
virtual void setFoldComments(bool fold);
protected:
bool readProperties(QSettings &qs, const QString &prefix);
bool writeProperties(QSettings &qs, const QString &prefix) const;
private:
QsciLexerYAML(const QsciLexerYAML &);
};

View File

@@ -0,0 +1,44 @@
// This is the SIP interface definition for QsciMacro.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciMacro : QObject
{
%TypeHeaderCode
#include <Qsci/qscimacro.h>
%End
public:
QsciMacro(QsciScintilla *parent /TransferThis/);
QsciMacro(const QString &asc, QsciScintilla *parent /TransferThis/);
virtual ~QsciMacro();
void clear();
bool load(const QString &asc);
QString save() const;
public slots:
virtual void play();
virtual void startRecording();
virtual void endRecording();
private:
QsciMacro(const QsciMacro &);
};

View File

@@ -0,0 +1,23 @@
// This is the SIP interface definition for the Qsci module of PyQt5.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt5.Qsci, keyword_arguments="Optional", use_limited_api=True)
%Include qscimodcommon.sip

View File

@@ -0,0 +1,23 @@
// This is the SIP interface definition for the Qsci module of PyQt6.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Module(name=PyQt6.Qsci, keyword_arguments="Optional", use_limited_api=True)
%Include qscimodcommon.sip

View File

@@ -0,0 +1,112 @@
// This is the SIP interface definition for the parts of the Qsci module common
// to PyQt5 and PyQt6.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%Copying
Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
This file is part of QScintilla.
This file may be used under the terms of the GNU General Public License
version 3.0 as published by the Free Software Foundation and appearing in
the file LICENSE included in the packaging of this file. Please review the
following information to ensure the GNU General Public License version 3.0
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you do not wish to use this file under the terms of the GPL version 3.0
then you may purchase a commercial license. For more information contact
info@riverbankcomputing.com.
This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%End
%Import QtCore/QtCoremod.sip
%Import QtGui/QtGuimod.sip
%Import QtWidgets/QtWidgetsmod.sip
%If (PyQt_Printer)
%Import QtPrintSupport/QtPrintSupportmod.sip
%End
const int QSCINTILLA_VERSION;
const char *QSCINTILLA_VERSION_STR;
%Include qsciscintillabase.sip
%Include qsciscintilla.sip
%Include qsciabstractapis.sip
%Include qsciapis.sip
%Include qscicommand.sip
%Include qscicommandset.sip
%Include qscidocument.sip
%Include qscilexer.sip
%Include qscilexerasm.sip
%Include qscilexeravs.sip
%Include qscilexerbash.sip
%Include qscilexerbatch.sip
%Include qscilexercmake.sip
%Include qscilexercoffeescript.sip
%Include qscilexercpp.sip
%Include qscilexercsharp.sip
%Include qscilexercss.sip
%Include qscilexercustom.sip
%Include qscilexerd.sip
%Include qscilexerdiff.sip
%Include qscilexerfortran.sip
%Include qscilexerfortran77.sip
%Include qscilexerhex.sip
%Include qscilexerhtml.sip
%Include qscilexeridl.sip
%Include qscilexerintelhex.sip
%Include qscilexerjava.sip
%Include qscilexerjavascript.sip
%Include qscilexerjson.sip
%Include qscilexerlua.sip
%Include qscilexermakefile.sip
%Include qscilexermarkdown.sip
%Include qscilexermasm.sip
%Include qscilexermatlab.sip
%Include qscilexernasm.sip
%Include qscilexeroctave.sip
%Include qscilexerpascal.sip
%Include qscilexerperl.sip
%Include qscilexerpostscript.sip
%Include qscilexerpo.sip
%Include qscilexerpov.sip
%Include qscilexerproperties.sip
%Include qscilexerpython.sip
%Include qscilexerruby.sip
%Include qscilexerspice.sip
%Include qscilexersql.sip
%Include qscilexersrec.sip
%Include qscilexertcl.sip
%Include qscilexertekhex.sip
%Include qscilexertex.sip
%Include qscilexerverilog.sip
%Include qscilexervhdl.sip
%Include qscilexerxml.sip
%Include qscilexeryaml.sip
%Include qscimacro.sip
%Include qsciprinter.sip
%Include qscistyle.sip
%Include qscistyledtext.sip

View File

@@ -0,0 +1,47 @@
// This is the SIP interface definition for QsciPrinter.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
%If (PyQt_Printer)
class QsciPrinter : QPrinter
{
%TypeHeaderCode
#include <Qsci/qsciprinter.h>
%End
public:
QsciPrinter(QPrinter::PrinterMode mode = QPrinter::ScreenResolution);
virtual ~QsciPrinter();
virtual void formatPage(QPainter &painter, bool drawing, QRect &area,
int pagenr);
int magnification() const;
virtual void setMagnification(int magnification);
virtual int printRange(QsciScintillaBase *qsb, QPainter &painter,
int from = -1, int to = -1);
virtual int printRange(QsciScintillaBase *qsb, int from = -1, int to = -1);
QsciScintilla::WrapMode wrapMode() const;
virtual void setWrapMode(QsciScintilla::WrapMode);
private:
QsciPrinter(const QsciPrinter &);
};
%End

View File

@@ -0,0 +1,557 @@
// This is the SIP interface definition for QsciScintilla.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciScintilla : QsciScintillaBase
{
%TypeHeaderCode
#include <Qsci/qsciscintilla.h>
%End
public:
enum {
AiMaintain,
AiOpening,
AiClosing
};
enum AnnotationDisplay {
AnnotationHidden,
AnnotationStandard,
AnnotationBoxed,
AnnotationIndented,
};
enum AutoCompletionSource {
AcsNone,
AcsAll,
AcsDocument,
AcsAPIs
};
enum AutoCompletionUseSingle {
AcusNever,
AcusExplicit,
AcusAlways
};
enum BraceMatch {
NoBraceMatch,
StrictBraceMatch,
SloppyBraceMatch
};
enum CallTipsPosition {
CallTipsBelowText,
CallTipsAboveText,
};
enum CallTipsStyle {
CallTipsNone,
CallTipsNoContext,
CallTipsNoAutoCompletionContext,
CallTipsContext
};
enum EdgeMode {
EdgeNone,
EdgeLine,
EdgeBackground,
EdgeMultipleLines,
};
enum EolMode {
EolWindows,
EolUnix,
EolMac
};
enum FoldStyle {
NoFoldStyle,
PlainFoldStyle,
CircledFoldStyle,
BoxedFoldStyle,
CircledTreeFoldStyle,
BoxedTreeFoldStyle
};
enum IndicatorStyle {
PlainIndicator,
SquiggleIndicator,
TTIndicator,
DiagonalIndicator,
StrikeIndicator,
HiddenIndicator,
BoxIndicator,
RoundBoxIndicator,
StraightBoxIndicator,
FullBoxIndicator,
DashesIndicator,
DotsIndicator,
SquiggleLowIndicator,
DotBoxIndicator,
SquigglePixmapIndicator,
ThickCompositionIndicator,
ThinCompositionIndicator,
TextColorIndicator,
TriangleIndicator,
TriangleCharacterIndicator,
GradientIndicator,
CentreGradientIndicator,
};
enum {
MoNone,
MoSublineSelect,
};
enum MarginType {
SymbolMargin,
SymbolMarginDefaultForegroundColor,
SymbolMarginDefaultBackgroundColor,
NumberMargin,
TextMargin,
TextMarginRightJustified,
SymbolMarginColor,
};
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,
FullRectangle,
LeftRectangle,
Underline,
Bookmark
};
enum TabDrawMode {
TabLongArrow,
TabStrikeOut,
};
enum WhitespaceVisibility {
WsInvisible,
WsVisible,
WsVisibleAfterIndent,
WsVisibleOnlyInIndent,
};
enum WrapMode {
WrapNone,
WrapWord,
WrapCharacter,
WrapWhitespace,
};
enum WrapVisualFlag {
WrapFlagNone,
WrapFlagByText,
WrapFlagByBorder,
WrapFlagInMargin,
};
enum WrapIndentMode {
WrapIndentFixed,
WrapIndentSame,
WrapIndentIndented,
WrapIndentDeeplyIndented,
};
QsciScintilla(QWidget *parent /TransferThis/ = 0);
virtual ~QsciScintilla();
virtual QStringList apiContext(int pos, int &context_start,
int &last_word_start);
void annotate(int line, const QString &text, int style);
void annotate(int line, const QString &text, const QsciStyle &style);
void annotate(int line, const QsciStyledText &text);
void annotate(int line, const QList<QsciStyledText> &text);
QString annotation(int line) const;
AnnotationDisplay annotationDisplay() const;
void clearAnnotations(int line = -1);
bool autoCompletionCaseSensitivity() const;
bool autoCompletionFillupsEnabled() const;
bool autoCompletionReplaceWord() const;
bool autoCompletionShowSingle() const;
AutoCompletionSource autoCompletionSource() const;
int autoCompletionThreshold() const;
AutoCompletionUseSingle autoCompletionUseSingle() const;
bool autoIndent() const;
bool backspaceUnindents() const;
void beginUndoAction();
BraceMatch braceMatching() const;
QByteArray bytes(int start, int end) const;
CallTipsPosition callTipsPosition() const;
CallTipsStyle callTipsStyle() const;
int callTipsVisible() const;
void cancelFind();
void cancelList();
bool caseSensitive() const;
void clearRegisteredImages();
QColor color() const;
QList<int> contractedFolds() const;
void convertEols(EolMode mode);
QMenu *createStandardContextMenu() /Factory/;
QsciDocument document() const;
void endUndoAction();
QColor edgeColor() const;
int edgeColumn() const;
EdgeMode edgeMode() const;
EolMode eolMode() const;
bool eolVisibility() const;
int extraAscent() const;
int extraDescent() const;
virtual bool findFirst(const QString &expr, bool re, bool cs, bool wo,
bool wrap, bool forward = true, int line = -1, int index = -1,
bool show = true, bool posix = false, bool cxx11 = false);
virtual bool findFirstInSelection(const QString &expr, bool re, bool cs,
bool wo, bool forward = true, bool show = true,
bool posix = false, bool cxx11 = false);
virtual bool findNext();
bool findMatchingBrace(long &brace, long &other, BraceMatch mode);
int firstVisibleLine() const;
FoldStyle folding() const;
void getCursorPosition(int *line, int *index) const;
void getSelection(int *lineFrom, int *indexFrom, int *lineTo,
int *indexTo) const;
bool hasSelectedText() const;
int indentation(int line) const;
bool indentationGuides() const;
bool indentationsUseTabs() const;
int indentationWidth() const;
void clearIndicatorRange(int lineFrom, int indexFrom, int lineTo,
int indexTo, int indicatorNumber);
void fillIndicatorRange(int lineFrom, int indexFrom, int lineTo,
int indexTo, int indicatorNumber);
int indicatorDefine(IndicatorStyle style, int indicatorNumber = -1);
bool indicatorDrawUnder(int indicatorNumber) const;
bool isCallTipActive() const;
bool isListActive() const;
bool isModified() const;
bool isReadOnly() const;
bool isRedoAvailable() const;
bool isUndoAvailable() const;
bool isUtf8() const;
bool isWordCharacter(char ch) const;
int lineAt(const QPoint &pos) const;
void lineIndexFromPosition(int position, int *line, int *index) const;
int lineLength(int line) const;
int lines() const;
int length() const;
QsciLexer *lexer() const;
QColor marginBackgroundColor(int margin) const;
bool marginLineNumbers(int margin) const;
int marginMarkerMask(int margin) const;
int marginOptions() const;
bool marginSensitivity(int margin) const;
MarginType marginType(int margin) const;
int marginWidth(int margin) const;
int margins() const;
int markerDefine(MarkerSymbol sym, int markerNumber = -1);
int markerDefine(char ch, int markerNumber = -1);
int markerDefine(const QPixmap &pm, int markerNumber = -1);
int markerDefine(const QImage &im, int markerNumber = -1);
int markerAdd(int linenr, int markerNumber);
unsigned markersAtLine(int linenr) const;
void markerDelete(int linenr, int markerNumber = -1);
void markerDeleteAll(int markerNumber = -1);
void markerDeleteHandle(int mhandle);
int markerLine(int mhandle) const;
int markerFindNext(int linenr, unsigned mask) const;
int markerFindPrevious(int linenr, unsigned mask) const;
bool overwriteMode() const;
QColor paper() const;
int positionFromLineIndex(int line, int index) const;
bool read(QIODevice *io) /ReleaseGIL/;
virtual void recolor(int start = 0, int end = -1);
void registerImage(int id, const QPixmap &pm);
void registerImage(int id, const QImage &im);
virtual void replace(const QString &replaceStr);
void resetFoldMarginColors();
void resetHotspotBackgroundColor();
void resetHotspotForegroundColor();
int scrollWidth() const;
void setScrollWidth(int pixelWidth);
bool scrollWidthTracking() const;
void setScrollWidthTracking(bool enabled);
void setFoldMarginColors(const QColor &fore, const QColor &back);
void setAnnotationDisplay(AnnotationDisplay display);
void setAutoCompletionFillupsEnabled(bool enabled);
void setAutoCompletionFillups(const char *fillups);
void setAutoCompletionWordSeparators(const QStringList &separators);
void setCallTipsBackgroundColor(const QColor &col);
void setCallTipsForegroundColor(const QColor &col);
void setCallTipsHighlightColor(const QColor &col);
void setCallTipsPosition(CallTipsPosition position);
void setCallTipsStyle(CallTipsStyle style);
void setCallTipsVisible(int nr);
void setContractedFolds(const QList<int> &folds);
void setDocument(const QsciDocument &document);
void addEdgeColumn(int colnr, const QColor &col);
void clearEdgeColumns();
void setEdgeColor(const QColor &col);
void setEdgeColumn(int colnr);
void setEdgeMode(EdgeMode mode);
void setFirstVisibleLine(int linenr);
void setFont(const QFont &f);
void setHotspotBackgroundColor(const QColor &col);
void setHotspotForegroundColor(const QColor &col);
void setHotspotUnderline(bool enable);
void setHotspotWrap(bool enable);
void setIndicatorDrawUnder(bool under, int indicatorNumber = -1);
void setIndicatorForegroundColor(const QColor &col,
int indicatorNumber = -1);
void setIndicatorHoverForegroundColor(const QColor &col,
int indicatorNumber = -1);
void setIndicatorHoverStyle(IndicatorStyle style,
int indicatorNumber = -1);
void setIndicatorOutlineColor(const QColor &col, int indicatorNumber = -1);
void setMarginBackgroundColor(int margin, const QColor &col);
void setMarginOptions(int options);
void setMarginText(int line, const QString &text, int style);
void setMarginText(int line, const QString &text, const QsciStyle &style);
void setMarginText(int line, const QsciStyledText &text);
void setMarginText(int line, const QList<QsciStyledText> &text);
void setMarginType(int margin, MarginType type);
void clearMarginText(int line = -1);
void setMargins(int margins);
void setMarkerBackgroundColor(const QColor &col, int markerNumber = -1);
void setMarkerForegroundColor(const QColor &col, int markerNumber = -1);
void setMatchedBraceBackgroundColor(const QColor &col);
void setMatchedBraceForegroundColor(const QColor &col);
void setMatchedBraceIndicator(int indicatorNumber);
void resetMatchedBraceIndicator();
void setUnmatchedBraceBackgroundColor(const QColor &col);
void setUnmatchedBraceForegroundColor(const QColor &col);
void setUnmatchedBraceIndicator(int indicatorNumber);
void resetUnmatchedBraceIndicator();
void setWrapVisualFlags(WrapVisualFlag endFlag,
WrapVisualFlag startFlag = QsciScintilla::WrapFlagNone,
int indent = 0);
QString selectedText() const;
bool selectionToEol() const;
void setSelectionToEol(bool filled);
void setExtraAscent(int extra);
void setExtraDescent(int extra);
void setOverwriteMode(bool overwrite);
void setWhitespaceBackgroundColor(const QColor &col);
void setWhitespaceForegroundColor(const QColor &col);
void setWhitespaceSize(int size);
void setWrapIndentMode(WrapIndentMode mode);
void showUserList(int id, const QStringList &list);
QsciCommandSet *standardCommands() const;
void setTabDrawMode(TabDrawMode mode);
TabDrawMode tabDrawMode() const;
bool tabIndents() const;
int tabWidth() const;
QString text() const;
QString text(int line) const;
QString text(int start, int end) const;
int textHeight(int linenr) const;
int whitespaceSize() const;
WhitespaceVisibility whitespaceVisibility() const;
QString wordAtLineIndex(int line, int index) const;
QString wordAtPoint(const QPoint &point) const;
const char *wordCharacters() const;
WrapMode wrapMode() const;
WrapIndentMode wrapIndentMode() const;
bool write(QIODevice *io) const /ReleaseGIL/;
public slots:
virtual void append(const QString &text);
virtual void autoCompleteFromAll();
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 line);
virtual void foldAll(bool children = false);
virtual void foldLine(int line);
virtual void indent(int line);
virtual void insert(const QString &text);
virtual void insertAt(const QString &text, int line, int index);
virtual void moveToMatchingBrace();
virtual void paste();
virtual void redo();
virtual void removeSelectedText();
virtual void replaceSelectedText(const QString &text);
virtual void resetSelectionBackgroundColor();
virtual void resetSelectionForegroundColor();
virtual void selectAll(bool select = true);
virtual void selectToMatchingBrace();
virtual void setAutoCompletionCaseSensitivity(bool cs);
virtual void setAutoCompletionReplaceWord(bool replace);
virtual void setAutoCompletionShowSingle(bool single);
virtual void setAutoCompletionSource(AutoCompletionSource source);
virtual void setAutoCompletionThreshold(int thresh);
virtual void setAutoCompletionUseSingle(AutoCompletionUseSingle single);
virtual void setAutoIndent(bool autoindent);
virtual void setBraceMatching(BraceMatch bm);
virtual void setBackspaceUnindents(bool unindent);
virtual void setCaretForegroundColor(const QColor &col);
virtual void setCaretLineBackgroundColor(const QColor &col);
virtual void setCaretLineFrameWidth(int width);
virtual void setCaretLineVisible(bool enable);
virtual void setCaretWidth(int width);
virtual void setColor(const QColor &col);
virtual void setCursorPosition(int line, int index);
virtual void setEolMode(EolMode mode);
virtual void setEolVisibility(bool visible);
virtual void setFolding(FoldStyle fold, int margin=2);
void clearFolds();
virtual void setIndentation(int line, int indentation);
virtual void setIndentationGuides(bool enable);
virtual void setIndentationGuidesBackgroundColor(const QColor &col);
virtual void setIndentationGuidesForegroundColor(const QColor &col);
virtual void setIndentationsUseTabs(bool tabs);
virtual void setIndentationWidth(int width);
virtual void setLexer(QsciLexer *lexer = 0);
virtual void setMarginsBackgroundColor(const QColor &col);
virtual void setMarginsFont(const QFont &f);
virtual void setMarginsForegroundColor(const QColor &col);
virtual void setMarginLineNumbers(int margin, bool lnrs);
virtual void setMarginMarkerMask(int margin, int mask);
virtual void setMarginSensitivity(int margin, bool sens);
virtual void setMarginWidth(int margin, int width);
virtual void setMarginWidth(int margin, const QString &s);
virtual void setModified(bool m);
virtual void setPaper(const QColor &c);
virtual void setReadOnly(bool ro);
virtual void setSelection(int lineFrom, int indexFrom, int lineTo,
int indexTo);
virtual void setSelectionBackgroundColor(const QColor &col);
virtual void setSelectionForegroundColor(const QColor &col);
virtual void setTabIndents(bool indent);
virtual void setTabWidth(int width);
virtual void setText(const QString &text);
virtual void setUtf8(bool cp);
virtual void setWhitespaceVisibility(WhitespaceVisibility mode);
virtual void setWrapMode(WrapMode mode);
virtual void undo();
virtual void unindent(int line);
virtual void zoomIn(int range);
virtual void zoomIn();
virtual void zoomOut(int range);
virtual void zoomOut();
virtual void zoomTo(int size);
signals:
void cursorPositionChanged(int line, int index);
void copyAvailable(bool yes);
void indicatorClicked(int line, int index, Qt::KeyboardModifiers state);
void indicatorReleased(int line, int index, Qt::KeyboardModifiers state);
void linesChanged();
void marginClicked(int margin, int line, Qt::KeyboardModifiers state);
void marginRightClicked(int margin, int line, Qt::KeyboardModifiers state);
void modificationAttempted();
void modificationChanged(bool m);
void selectionChanged();
void textChanged();
void userListActivated(int id, const QString &string);
protected:
virtual bool event(QEvent *event);
virtual void changeEvent(QEvent *event);
virtual void contextMenuEvent(QContextMenuEvent *event);
virtual void wheelEvent(QWheelEvent *event);
private:
QsciScintilla(const QsciScintilla &);
};

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
// This is the SIP interface definition for QsciStyle.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciStyle
{
%TypeHeaderCode
#include <Qsci/qscistyle.h>
%End
public:
enum TextCase {
OriginalCase,
UpperCase,
LowerCase
};
QsciStyle(int style = -1);
QsciStyle(int style, const QString &description, const QColor &color,
const QColor &paper, const QFont &font, bool eolFill = false);
void setStyle(int style);
int style() const;
void setDescription(const QString &description);
QString description() const;
void setColor(const QColor &color);
QColor color() const;
void setPaper(const QColor &paper);
QColor paper() const;
void setFont(const QFont &font);
QFont font() const;
void setEolFill(bool fill);
bool eolFill() const;
void setTextCase(TextCase text_case);
TextCase textCase() const;
void setVisible(bool visible);
bool visible() const;
void setChangeable(bool changeable);
bool changeable() const;
void setHotspot(bool hotspot);
bool hotspot() const;
void refresh();
};

View File

@@ -0,0 +1,33 @@
// This is the SIP interface definition for QsciStyledText.
//
// Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file LICENSE included in the packaging of this file. Please review the
// following information to ensure the GNU General Public License version 3.0
// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
//
// If you do not wish to use this file under the terms of the GPL version 3.0
// then you may purchase a commercial license. For more information contact
// info@riverbankcomputing.com.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
class QsciStyledText
{
%TypeHeaderCode
#include <Qsci/qscistyledtext.h>
%End
public:
QsciStyledText(const QString &text, int style);
QsciStyledText(const QString &text, const QsciStyle &style);
const QString &text();
int style() const;
};