mirror of
https://github.com/NohamR/Reclass.git
synced 2026-05-10 19:59:21 +00:00
Initial commit: ReclassX structured binary editor
This commit is contained in:
50
third_party/qscintilla/Python/README
vendored
Normal file
50
third_party/qscintilla/Python/README
vendored
Normal 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.
|
||||
22
third_party/qscintilla/Python/config-tests/cfgtest_Qsci.cpp
vendored
Normal file
22
third_party/qscintilla/Python/config-tests/cfgtest_Qsci.cpp
vendored
Normal 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
212
third_party/qscintilla/Python/project.py
vendored
Normal 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)
|
||||
16
third_party/qscintilla/Python/pyproject-qt5.toml
vendored
Normal file
16
third_party/qscintilla/Python/pyproject-qt5.toml
vendored
Normal 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)"
|
||||
16
third_party/qscintilla/Python/pyproject-qt6.toml
vendored
Normal file
16
third_party/qscintilla/Python/pyproject-qt6.toml
vendored
Normal 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)"
|
||||
42
third_party/qscintilla/Python/sip/qsciabstractapis.sip
vendored
Normal file
42
third_party/qscintilla/Python/sip/qsciabstractapis.sip
vendored
Normal 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 &);
|
||||
};
|
||||
58
third_party/qscintilla/Python/sip/qsciapis.sip
vendored
Normal file
58
third_party/qscintilla/Python/sip/qsciapis.sip
vendored
Normal 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 &);
|
||||
};
|
||||
143
third_party/qscintilla/Python/sip/qscicommand.sip
vendored
Normal file
143
third_party/qscintilla/Python/sip/qscicommand.sip
vendored
Normal 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 &);
|
||||
};
|
||||
44
third_party/qscintilla/Python/sip/qscicommandset.sip
vendored
Normal file
44
third_party/qscintilla/Python/sip/qscicommandset.sip
vendored
Normal 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 &);
|
||||
};
|
||||
32
third_party/qscintilla/Python/sip/qscidocument.sip
vendored
Normal file
32
third_party/qscintilla/Python/sip/qscidocument.sip
vendored
Normal 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 &);
|
||||
};
|
||||
90
third_party/qscintilla/Python/sip/qscilexer.sip
vendored
Normal file
90
third_party/qscintilla/Python/sip/qscilexer.sip
vendored
Normal 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 &);
|
||||
};
|
||||
74
third_party/qscintilla/Python/sip/qscilexerasm.sip
vendored
Normal file
74
third_party/qscintilla/Python/sip/qscilexerasm.sip
vendored
Normal 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 &);
|
||||
};
|
||||
73
third_party/qscintilla/Python/sip/qscilexeravs.sip
vendored
Normal file
73
third_party/qscintilla/Python/sip/qscilexeravs.sip
vendored
Normal 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 &);
|
||||
};
|
||||
74
third_party/qscintilla/Python/sip/qscilexerbash.sip
vendored
Normal file
74
third_party/qscintilla/Python/sip/qscilexerbash.sip
vendored
Normal 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 &);
|
||||
};
|
||||
56
third_party/qscintilla/Python/sip/qscilexerbatch.sip
vendored
Normal file
56
third_party/qscintilla/Python/sip/qscilexerbatch.sip
vendored
Normal 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 &);
|
||||
};
|
||||
69
third_party/qscintilla/Python/sip/qscilexercmake.sip
vendored
Normal file
69
third_party/qscintilla/Python/sip/qscilexercmake.sip
vendored
Normal 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 &);
|
||||
};
|
||||
90
third_party/qscintilla/Python/sip/qscilexercoffeescript.sip
vendored
Normal file
90
third_party/qscintilla/Python/sip/qscilexercoffeescript.sip
vendored
Normal 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 &);
|
||||
};
|
||||
138
third_party/qscintilla/Python/sip/qscilexercpp.sip
vendored
Normal file
138
third_party/qscintilla/Python/sip/qscilexercpp.sip
vendored
Normal 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 &);
|
||||
};
|
||||
41
third_party/qscintilla/Python/sip/qscilexercsharp.sip
vendored
Normal file
41
third_party/qscintilla/Python/sip/qscilexercsharp.sip
vendored
Normal 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 &);
|
||||
};
|
||||
88
third_party/qscintilla/Python/sip/qscilexercss.sip
vendored
Normal file
88
third_party/qscintilla/Python/sip/qscilexercss.sip
vendored
Normal 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 &);
|
||||
};
|
||||
42
third_party/qscintilla/Python/sip/qscilexercustom.sip
vendored
Normal file
42
third_party/qscintilla/Python/sip/qscilexercustom.sip
vendored
Normal 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 &);
|
||||
};
|
||||
88
third_party/qscintilla/Python/sip/qscilexerd.sip
vendored
Normal file
88
third_party/qscintilla/Python/sip/qscilexerd.sip
vendored
Normal 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 &);
|
||||
};
|
||||
54
third_party/qscintilla/Python/sip/qscilexerdiff.sip
vendored
Normal file
54
third_party/qscintilla/Python/sip/qscilexerdiff.sip
vendored
Normal 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 &);
|
||||
};
|
||||
50
third_party/qscintilla/Python/sip/qscilexeredifact.sip
vendored
Normal file
50
third_party/qscintilla/Python/sip/qscilexeredifact.sip
vendored
Normal 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 &);
|
||||
};
|
||||
36
third_party/qscintilla/Python/sip/qscilexerfortran.sip
vendored
Normal file
36
third_party/qscintilla/Python/sip/qscilexerfortran.sip
vendored
Normal 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 &);
|
||||
};
|
||||
71
third_party/qscintilla/Python/sip/qscilexerfortran77.sip
vendored
Normal file
71
third_party/qscintilla/Python/sip/qscilexerfortran77.sip
vendored
Normal 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 &);
|
||||
};
|
||||
58
third_party/qscintilla/Python/sip/qscilexerhex.sip
vendored
Normal file
58
third_party/qscintilla/Python/sip/qscilexerhex.sip
vendored
Normal 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 &);
|
||||
};
|
||||
181
third_party/qscintilla/Python/sip/qscilexerhtml.sip
vendored
Normal file
181
third_party/qscintilla/Python/sip/qscilexerhtml.sip
vendored
Normal 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 &);
|
||||
};
|
||||
38
third_party/qscintilla/Python/sip/qscilexeridl.sip
vendored
Normal file
38
third_party/qscintilla/Python/sip/qscilexeridl.sip
vendored
Normal 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 &);
|
||||
};
|
||||
37
third_party/qscintilla/Python/sip/qscilexerintelhex.sip
vendored
Normal file
37
third_party/qscintilla/Python/sip/qscilexerintelhex.sip
vendored
Normal 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 &);
|
||||
};
|
||||
36
third_party/qscintilla/Python/sip/qscilexerjava.sip
vendored
Normal file
36
third_party/qscintilla/Python/sip/qscilexerjava.sip
vendored
Normal 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 &);
|
||||
};
|
||||
41
third_party/qscintilla/Python/sip/qscilexerjavascript.sip
vendored
Normal file
41
third_party/qscintilla/Python/sip/qscilexerjavascript.sip
vendored
Normal 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 &);
|
||||
};
|
||||
71
third_party/qscintilla/Python/sip/qscilexerjson.sip
vendored
Normal file
71
third_party/qscintilla/Python/sip/qscilexerjson.sip
vendored
Normal 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 &);
|
||||
};
|
||||
79
third_party/qscintilla/Python/sip/qscilexerlua.sip
vendored
Normal file
79
third_party/qscintilla/Python/sip/qscilexerlua.sip
vendored
Normal 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 &);
|
||||
};
|
||||
52
third_party/qscintilla/Python/sip/qscilexermakefile.sip
vendored
Normal file
52
third_party/qscintilla/Python/sip/qscilexermakefile.sip
vendored
Normal 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 &);
|
||||
};
|
||||
65
third_party/qscintilla/Python/sip/qscilexermarkdown.sip
vendored
Normal file
65
third_party/qscintilla/Python/sip/qscilexermarkdown.sip
vendored
Normal 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 &);
|
||||
};
|
||||
36
third_party/qscintilla/Python/sip/qscilexermasm.sip
vendored
Normal file
36
third_party/qscintilla/Python/sip/qscilexermasm.sip
vendored
Normal 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 &);
|
||||
};
|
||||
52
third_party/qscintilla/Python/sip/qscilexermatlab.sip
vendored
Normal file
52
third_party/qscintilla/Python/sip/qscilexermatlab.sip
vendored
Normal 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 &);
|
||||
};
|
||||
36
third_party/qscintilla/Python/sip/qscilexernasm.sip
vendored
Normal file
36
third_party/qscintilla/Python/sip/qscilexernasm.sip
vendored
Normal 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 &);
|
||||
};
|
||||
37
third_party/qscintilla/Python/sip/qscilexeroctave.sip
vendored
Normal file
37
third_party/qscintilla/Python/sip/qscilexeroctave.sip
vendored
Normal 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 &);
|
||||
};
|
||||
82
third_party/qscintilla/Python/sip/qscilexerpascal.sip
vendored
Normal file
82
third_party/qscintilla/Python/sip/qscilexerpascal.sip
vendored
Normal 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 &);
|
||||
};
|
||||
111
third_party/qscintilla/Python/sip/qscilexerperl.sip
vendored
Normal file
111
third_party/qscintilla/Python/sip/qscilexerperl.sip
vendored
Normal 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 &);
|
||||
};
|
||||
69
third_party/qscintilla/Python/sip/qscilexerpo.sip
vendored
Normal file
69
third_party/qscintilla/Python/sip/qscilexerpo.sip
vendored
Normal 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 &);
|
||||
};
|
||||
78
third_party/qscintilla/Python/sip/qscilexerpostscript.sip
vendored
Normal file
78
third_party/qscintilla/Python/sip/qscilexerpostscript.sip
vendored
Normal 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 &);
|
||||
};
|
||||
79
third_party/qscintilla/Python/sip/qscilexerpov.sip
vendored
Normal file
79
third_party/qscintilla/Python/sip/qscilexerpov.sip
vendored
Normal 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 &);
|
||||
};
|
||||
63
third_party/qscintilla/Python/sip/qscilexerproperties.sip
vendored
Normal file
63
third_party/qscintilla/Python/sip/qscilexerproperties.sip
vendored
Normal 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 &);
|
||||
};
|
||||
105
third_party/qscintilla/Python/sip/qscilexerpython.sip
vendored
Normal file
105
third_party/qscintilla/Python/sip/qscilexerpython.sip
vendored
Normal 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 &);
|
||||
};
|
||||
91
third_party/qscintilla/Python/sip/qscilexerruby.sip
vendored
Normal file
91
third_party/qscintilla/Python/sip/qscilexerruby.sip
vendored
Normal 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 &);
|
||||
};
|
||||
54
third_party/qscintilla/Python/sip/qscilexerspice.sip
vendored
Normal file
54
third_party/qscintilla/Python/sip/qscilexerspice.sip
vendored
Normal 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 &);
|
||||
};
|
||||
93
third_party/qscintilla/Python/sip/qscilexersql.sip
vendored
Normal file
93
third_party/qscintilla/Python/sip/qscilexersql.sip
vendored
Normal 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 &);
|
||||
};
|
||||
37
third_party/qscintilla/Python/sip/qscilexersrec.sip
vendored
Normal file
37
third_party/qscintilla/Python/sip/qscilexersrec.sip
vendored
Normal 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 &);
|
||||
};
|
||||
77
third_party/qscintilla/Python/sip/qscilexertcl.sip
vendored
Normal file
77
third_party/qscintilla/Python/sip/qscilexertcl.sip
vendored
Normal 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 &);
|
||||
};
|
||||
37
third_party/qscintilla/Python/sip/qscilexertekhex.sip
vendored
Normal file
37
third_party/qscintilla/Python/sip/qscilexertekhex.sip
vendored
Normal 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 &);
|
||||
};
|
||||
63
third_party/qscintilla/Python/sip/qscilexertex.sip
vendored
Normal file
63
third_party/qscintilla/Python/sip/qscilexertex.sip
vendored
Normal 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 &);
|
||||
};
|
||||
106
third_party/qscintilla/Python/sip/qscilexerverilog.sip
vendored
Normal file
106
third_party/qscintilla/Python/sip/qscilexerverilog.sip
vendored
Normal 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 &);
|
||||
};
|
||||
81
third_party/qscintilla/Python/sip/qscilexervhdl.sip
vendored
Normal file
81
third_party/qscintilla/Python/sip/qscilexervhdl.sip
vendored
Normal 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 &);
|
||||
};
|
||||
49
third_party/qscintilla/Python/sip/qscilexerxml.sip
vendored
Normal file
49
third_party/qscintilla/Python/sip/qscilexerxml.sip
vendored
Normal 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 &);
|
||||
};
|
||||
65
third_party/qscintilla/Python/sip/qscilexeryaml.sip
vendored
Normal file
65
third_party/qscintilla/Python/sip/qscilexeryaml.sip
vendored
Normal 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 &);
|
||||
};
|
||||
44
third_party/qscintilla/Python/sip/qscimacro.sip
vendored
Normal file
44
third_party/qscintilla/Python/sip/qscimacro.sip
vendored
Normal 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 &);
|
||||
};
|
||||
23
third_party/qscintilla/Python/sip/qscimod5.sip
vendored
Normal file
23
third_party/qscintilla/Python/sip/qscimod5.sip
vendored
Normal 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
|
||||
23
third_party/qscintilla/Python/sip/qscimod6.sip
vendored
Normal file
23
third_party/qscintilla/Python/sip/qscimod6.sip
vendored
Normal 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
|
||||
112
third_party/qscintilla/Python/sip/qscimodcommon.sip
vendored
Normal file
112
third_party/qscintilla/Python/sip/qscimodcommon.sip
vendored
Normal 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
|
||||
47
third_party/qscintilla/Python/sip/qsciprinter.sip
vendored
Normal file
47
third_party/qscintilla/Python/sip/qsciprinter.sip
vendored
Normal 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
|
||||
557
third_party/qscintilla/Python/sip/qsciscintilla.sip
vendored
Normal file
557
third_party/qscintilla/Python/sip/qsciscintilla.sip
vendored
Normal 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 &);
|
||||
};
|
||||
1611
third_party/qscintilla/Python/sip/qsciscintillabase.sip
vendored
Normal file
1611
third_party/qscintilla/Python/sip/qsciscintillabase.sip
vendored
Normal file
File diff suppressed because it is too large
Load Diff
69
third_party/qscintilla/Python/sip/qscistyle.sip
vendored
Normal file
69
third_party/qscintilla/Python/sip/qscistyle.sip
vendored
Normal 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();
|
||||
};
|
||||
33
third_party/qscintilla/Python/sip/qscistyledtext.sip
vendored
Normal file
33
third_party/qscintilla/Python/sip/qscistyledtext.sip
vendored
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user