forked from linuxdeepin/deepin-unioncode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Revert "chore: [editor] Use libqscintilla2-qt5-dev instead of …
…source code" Log: This reverts commit 820c7fb. Change-Id: I6a7d62f3ac279361834e69fd91fe36a8f603b751
- Loading branch information
1 parent
5dfedc4
commit 1e883a0
Showing
368 changed files
with
163,830 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
add_subdirectory(cppdap) | ||
#add_subdirectory(unioncode-GitQlient) | ||
#add_subdirectory(unioncode-qscintilla214) | ||
add_subdirectory(unioncode-qscintilla214) | ||
add_subdirectory(unioncode-qtermwidget-0.14.1) | ||
#add_subdirectory(unioncode-jsonrpccpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
include_directories( | ||
${CMAKE_SOURCE_DIR}/3rdparty/unioncode-qscintilla214/src | ||
) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
link_libraries(unioncode-qscintilla) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(unioncode-qscintilla) | ||
set(CMAKE_CXX_STANDARD 17) | ||
|
||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
find_package(Qt5 COMPONENTS | ||
Widgets | ||
PrintSupport | ||
REQUIRED) | ||
find_package(Dtk COMPONENTS Widget REQUIRED) | ||
|
||
file(GLOB_RECURSE SRCS CONFIGURE_DEPENDS | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/Qsci/*.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/src/Qsci/*.cpp" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/scintilla/*/*.h" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/scintilla/*/*.cpp" | ||
) | ||
|
||
add_definitions(-DSCINTILLA_QT -DSCI_LEXER -DINCLUDE_DEPRECATED_FEATURES) | ||
|
||
add_library(${PROJECT_NAME} ${SRCS}) | ||
|
||
target_include_directories(${PROJECT_NAME} | ||
PRIVATE | ||
${DtkWidget_INCLUDE_DIRS} | ||
${CMAKE_CURRENT_SOURCE_DIR}/scintilla/include | ||
${CMAKE_CURRENT_SOURCE_DIR}/scintilla/src | ||
${CMAKE_CURRENT_SOURCE_DIR}/scintilla/lexlib | ||
${CMAKE_CURRENT_SOURCE_DIR}/src | ||
${CMAKE_CURRENT_SOURCE_DIR}/src/Qsci | ||
) | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
Qt5::Widgets | ||
Qt5::PrintSupport | ||
${DtkWidget_LIBRARIES} | ||
) | ||
|
||
install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION ${LIBRARY_INSTALL_PREFIX}) |
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
3rdparty/unioncode-qscintilla214/scintilla/include/BoostRegexSearch.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef BOOSTREGEXSEARCH_H | ||
#define BOOSTREGEXSEARCH_H | ||
|
||
#define SCFIND_REGEXP_DOTMATCHESNL 0x10000000 | ||
#define SCFIND_REGEXP_EMPTYMATCH_MASK 0xE0000000 | ||
#define SCFIND_REGEXP_EMPTYMATCH_NONE 0x00000000 | ||
#define SCFIND_REGEXP_EMPTYMATCH_NOTAFTERMATCH 0x20000000 | ||
#define SCFIND_REGEXP_EMPTYMATCH_ALL 0x40000000 | ||
#define SCFIND_REGEXP_EMPTYMATCH_ALLOWATSTART 0x80000000 | ||
#define SCFIND_REGEXP_SKIPCRLFASONE 0x08000000 | ||
|
||
#ifdef SCI_OWNREGEX | ||
extern std::string g_exceptionMessage; | ||
#endif | ||
|
||
#endif |
90 changes: 90 additions & 0 deletions
90
3rdparty/unioncode-qscintilla214/scintilla/include/ILexer.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
// Scintilla source code edit control | ||
/** @file ILexer.h | ||
** Interface between Scintilla and lexers. | ||
**/ | ||
// Copyright 1998-2010 by Neil Hodgson <[email protected]> | ||
// The License.txt file describes the conditions under which this software may be distributed. | ||
|
||
#ifndef ILEXER_H | ||
#define ILEXER_H | ||
|
||
#include "Sci_Position.h" | ||
|
||
namespace Scintilla { | ||
|
||
enum { dvOriginal=0, dvLineEnd=1 }; | ||
|
||
class IDocument { | ||
public: | ||
virtual int SCI_METHOD Version() const = 0; | ||
virtual void SCI_METHOD SetErrorStatus(int status) = 0; | ||
virtual Sci_Position SCI_METHOD Length() const = 0; | ||
virtual void SCI_METHOD GetCharRange(char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const = 0; | ||
virtual char SCI_METHOD StyleAt(Sci_Position position) const = 0; | ||
virtual Sci_Position SCI_METHOD LineFromPosition(Sci_Position position) const = 0; | ||
virtual Sci_Position SCI_METHOD LineStart(Sci_Position line) const = 0; | ||
virtual int SCI_METHOD GetLevel(Sci_Position line) const = 0; | ||
virtual int SCI_METHOD SetLevel(Sci_Position line, int level) = 0; | ||
virtual int SCI_METHOD GetLineState(Sci_Position line) const = 0; | ||
virtual int SCI_METHOD SetLineState(Sci_Position line, int state) = 0; | ||
virtual void SCI_METHOD StartStyling(Sci_Position position, char mask) = 0; | ||
virtual bool SCI_METHOD SetStyleFor(Sci_Position length, char style) = 0; | ||
virtual bool SCI_METHOD SetStyles(Sci_Position length, const char *styles) = 0; | ||
virtual void SCI_METHOD DecorationSetCurrentIndicator(int indicator) = 0; | ||
virtual void SCI_METHOD DecorationFillRange(Sci_Position position, int value, Sci_Position fillLength) = 0; | ||
virtual void SCI_METHOD ChangeLexerState(Sci_Position start, Sci_Position end) = 0; | ||
virtual int SCI_METHOD CodePage() const = 0; | ||
virtual bool SCI_METHOD IsDBCSLeadByte(char ch) const = 0; | ||
virtual const char * SCI_METHOD BufferPointer() = 0; | ||
virtual int SCI_METHOD GetLineIndentation(Sci_Position line) = 0; | ||
}; | ||
|
||
class IDocumentWithLineEnd : public IDocument { | ||
public: | ||
virtual Sci_Position SCI_METHOD LineEnd(Sci_Position line) const = 0; | ||
virtual Sci_Position SCI_METHOD GetRelativePosition(Sci_Position positionStart, Sci_Position characterOffset) const = 0; | ||
virtual int SCI_METHOD GetCharacterAndWidth(Sci_Position position, Sci_Position *pWidth) const = 0; | ||
}; | ||
|
||
enum { lvOriginal=0, lvSubStyles=1, lvMetaData=2 }; | ||
|
||
class ILexer { | ||
public: | ||
virtual int SCI_METHOD Version() const = 0; | ||
virtual void SCI_METHOD Release() = 0; | ||
virtual const char * SCI_METHOD PropertyNames() = 0; | ||
virtual int SCI_METHOD PropertyType(const char *name) = 0; | ||
virtual const char * SCI_METHOD DescribeProperty(const char *name) = 0; | ||
virtual Sci_Position SCI_METHOD PropertySet(const char *key, const char *val) = 0; | ||
virtual const char * SCI_METHOD DescribeWordListSets() = 0; | ||
virtual Sci_Position SCI_METHOD WordListSet(int n, const char *wl) = 0; | ||
virtual void SCI_METHOD Lex(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0; | ||
virtual void SCI_METHOD Fold(Sci_PositionU startPos, Sci_Position lengthDoc, int initStyle, IDocument *pAccess) = 0; | ||
virtual void * SCI_METHOD PrivateCall(int operation, void *pointer) = 0; | ||
}; | ||
|
||
class ILexerWithSubStyles : public ILexer { | ||
public: | ||
virtual int SCI_METHOD LineEndTypesSupported() = 0; | ||
virtual int SCI_METHOD AllocateSubStyles(int styleBase, int numberStyles) = 0; | ||
virtual int SCI_METHOD SubStylesStart(int styleBase) = 0; | ||
virtual int SCI_METHOD SubStylesLength(int styleBase) = 0; | ||
virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0; | ||
virtual int SCI_METHOD PrimaryStyleFromStyle(int style) = 0; | ||
virtual void SCI_METHOD FreeSubStyles() = 0; | ||
virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0; | ||
virtual int SCI_METHOD DistanceToSecondaryStyles() = 0; | ||
virtual const char * SCI_METHOD GetSubStyleBases() = 0; | ||
}; | ||
|
||
class ILexerWithMetaData : public ILexerWithSubStyles { | ||
public: | ||
virtual int SCI_METHOD NamedStyles() = 0; | ||
virtual const char * SCI_METHOD NameOfStyle(int style) = 0; | ||
virtual const char * SCI_METHOD TagsOfStyle(int style) = 0; | ||
virtual const char * SCI_METHOD DescriptionOfStyle(int style) = 0; | ||
}; | ||
|
||
} | ||
|
||
#endif |
21 changes: 21 additions & 0 deletions
21
3rdparty/unioncode-qscintilla214/scintilla/include/ILoader.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Scintilla source code edit control | ||
/** @file ILoader.h | ||
** Interface for loading into a Scintilla document from a background thread. | ||
**/ | ||
// Copyright 1998-2017 by Neil Hodgson <[email protected]> | ||
// The License.txt file describes the conditions under which this software may be distributed. | ||
|
||
#ifndef ILOADER_H | ||
#define ILOADER_H | ||
|
||
#include "Sci_Position.h" | ||
|
||
class ILoader { | ||
public: | ||
virtual int SCI_METHOD Release() = 0; | ||
// Returns a status code from SC_STATUS_* | ||
virtual int SCI_METHOD AddData(const char *data, Sci_Position length) = 0; | ||
virtual void * SCI_METHOD ConvertToDocument() = 0; | ||
}; | ||
|
||
#endif |
20 changes: 20 additions & 0 deletions
20
3rdparty/unioncode-qscintilla214/scintilla/include/License.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
License for Scintilla and SciTE | ||
|
||
Copyright 1998-2003 by Neil Hodgson <[email protected]> | ||
|
||
All Rights Reserved | ||
|
||
Permission to use, copy, modify, and distribute this software and its | ||
documentation for any purpose and without fee is hereby granted, | ||
provided that the above copyright notice appear in all copies and that | ||
both that copyright notice and this permission notice appear in | ||
supporting documentation. | ||
|
||
NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS | ||
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY | ||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, | ||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE | ||
OR PERFORMANCE OF THIS SOFTWARE. |
Oops, something went wrong.