From 147a044203f90b1383a36f2510dbe3950ca152d1 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Thu, 27 May 2010 02:17:08 +0000 Subject: [PATCH] 2010-05-26 18:53 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbqt/generator/hbqtgen.prg + Tweaked to operate on local folder and definitions there. + contrib/hbqt/hbqscintilla + contrib/hbqt/hbqscintilla/doc + contrib/hbqt/hbqscintilla/doc/en + contrib/hbqt/hbqscintilla/qth + contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth + contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth + contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth + contrib/hbqt/hbqscintilla/qth/QsciCommand.qth + contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth + contrib/hbqt/hbqscintilla/qth/QsciDocument.qth + contrib/hbqt/hbqscintilla/qth/QsciLexer.qth + contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth + contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth + contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth + contrib/hbqt/hbqscintilla/qth/QsciStyle.qth + contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth + contrib/hbqt/hbqscintilla/doc/en/class_*.txt + Auto generated + contrib/hbqt/hbqscintilla/Qsci*.cpp + Auto generated. + contrib/hbqt/hbqscintilla/THBQsci*.prg + Auto generated. + contrib/hbqt/hbqscintilla/hbqt_garbage.h + Auto generated. + contrib/hbqt/hbqscintilla/hbqscintilla.ch + Constants for PRG code. + contrib/hbqt/hbqscintilla/hbqscintilla.hbp + To build hbqscintilla.a/lib + contrib/hbqt/hbqscintilla/hbqscintilla.qtp + .qth info file. + contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp + contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h + contrib/hbqt/hbqt.h + Added: constants hbqt_par_Qsci* ; TODO make them local. + Initial upload of wrappers for QScintilla. To generate the sources auto you need to stay in hbqt/hbqscintilla and issue ../generator/hbqtgen. HB_WITH_QSCINTILLA and HB_WITH_QT need be properly defined. I am still finding where to host modified QScintilla, any tips ? --- harbour/ChangeLog | 57 + harbour/contrib/hbqt/generator/hbqtgen.prg | 78 +- .../hbqt/hbqscintilla/HBQsciScintilla.cpp | 154 + .../contrib/hbqt/hbqscintilla/QsciAPIs.cpp | 360 ++ .../hbqt/hbqscintilla/QsciAbstractAPIs.cpp | 176 + .../contrib/hbqt/hbqscintilla/QsciCommand.cpp | 208 ++ .../hbqt/hbqscintilla/QsciCommandSet.cpp | 189 ++ .../hbqt/hbqscintilla/QsciDocument.cpp | 151 + .../contrib/hbqt/hbqscintilla/QsciLexer.cpp | 753 +++++ .../hbqt/hbqscintilla/QsciLexerCPP.cpp | 572 ++++ .../hbqt/hbqscintilla/QsciLexerFlagship.cpp | 572 ++++ .../hbqt/hbqscintilla/QsciScintilla.cpp | 2960 +++++++++++++++++ .../contrib/hbqt/hbqscintilla/QsciStyle.cpp | 450 +++ .../hbqt/hbqscintilla/QsciStyledText.cpp | 179 + .../hbqt/hbqscintilla/THBQsciScintilla.prg | 81 + .../contrib/hbqt/hbqscintilla/TQsciAPIs.prg | 151 + .../hbqt/hbqscintilla/TQsciAbstractAPIs.prg | 96 + .../hbqt/hbqscintilla/TQsciCommand.prg | 111 + .../hbqt/hbqscintilla/TQsciCommandSet.prg | 101 + .../hbqt/hbqscintilla/TQsciDocument.prg | 81 + .../contrib/hbqt/hbqscintilla/TQsciLexer.prg | 301 ++ .../hbqt/hbqscintilla/TQsciLexerCPP.prg | 216 ++ .../hbqt/hbqscintilla/TQsciLexerFlagship.prg | 216 ++ .../hbqt/hbqscintilla/TQsciScintilla.prg | 1056 ++++++ .../contrib/hbqt/hbqscintilla/TQsciStyle.prg | 181 + .../hbqt/hbqscintilla/TQsciStyledText.prg | 91 + .../doc/en/class_qsciabstractapis.txt | 56 + .../hbqscintilla/doc/en/class_qsciapis.txt | 67 + .../hbqscintilla/doc/en/class_qscicommand.txt | 59 + .../doc/en/class_qscicommandset.txt | 57 + .../hbqscintilla/doc/en/class_qscilexer.txt | 97 + .../doc/en/class_qscilexercpp.txt | 80 + .../doc/en/class_qscilexerflagship.txt | 80 + .../doc/en/class_qsciscintilla.txt | 248 ++ .../hbqscintilla/doc/en/class_qscistyle.txt | 73 + .../doc/en/class_qscistyledtext.txt | 55 + .../contrib/hbqt/hbqscintilla/hbqscintilla.ch | 953 ++++++ .../hbqt/hbqscintilla/hbqscintilla.hbp | 58 + .../hbqt/hbqscintilla/hbqscintilla.qtp | 29 + .../contrib/hbqt/hbqscintilla/hbqt_garbage.h | 36 + .../hbqscintilla/hbqt_hbqsciscintilla.cpp | 113 + .../hbqt/hbqscintilla/hbqt_hbqsciscintilla.h | 89 + .../hbqt/hbqscintilla/qth/HBQsciScintilla.qth | 94 + .../hbqt/hbqscintilla/qth/QsciAPIs.qth | 115 + .../hbqscintilla/qth/QsciAbstractAPIs.qth | 101 + .../hbqt/hbqscintilla/qth/QsciCommand.qth | 102 + .../hbqt/hbqscintilla/qth/QsciCommandSet.qth | 101 + .../hbqt/hbqscintilla/qth/QsciDocument.qth | 104 + .../hbqt/hbqscintilla/qth/QsciLexer.qth | 149 + .../hbqt/hbqscintilla/qth/QsciLexerCPP.qth | 148 + .../hbqscintilla/qth/QsciLexerFlagship.qth | 148 + .../hbqt/hbqscintilla/qth/QsciScintilla.qth | 343 ++ .../hbqt/hbqscintilla/qth/QsciStyle.qth | 129 + .../hbqt/hbqscintilla/qth/QsciStyledText.qth | 106 + harbour/contrib/hbqt/hbqt.h | 14 + 55 files changed, 13317 insertions(+), 28 deletions(-) create mode 100644 harbour/contrib/hbqt/hbqscintilla/HBQsciScintilla.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciAPIs.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciAbstractAPIs.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciCommand.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciCommandSet.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciDocument.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciLexer.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciLexerCPP.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciLexerFlagship.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciScintilla.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciStyle.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/QsciStyledText.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/THBQsciScintilla.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciAPIs.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciAbstractAPIs.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciCommand.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciCommandSet.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciDocument.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciLexer.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciLexerCPP.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciLexerFlagship.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciScintilla.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciStyle.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/TQsciStyledText.prg create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciabstractapis.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciapis.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommand.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommandset.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexer.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexercpp.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexerflagship.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciscintilla.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyle.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyledtext.txt create mode 100644 harbour/contrib/hbqt/hbqscintilla/hbqscintilla.ch create mode 100644 harbour/contrib/hbqt/hbqscintilla/hbqscintilla.hbp create mode 100644 harbour/contrib/hbqt/hbqscintilla/hbqscintilla.qtp create mode 100644 harbour/contrib/hbqt/hbqscintilla/hbqt_garbage.h create mode 100644 harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp create mode 100644 harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciCommand.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciDocument.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciLexer.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciStyle.qth create mode 100644 harbour/contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 40d7f11c9c..5d907a69df 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,63 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-05-26 18:53 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * contrib/hbqt/generator/hbqtgen.prg + + Tweaked to operate on local folder and definitions there. + + + contrib/hbqt/hbqscintilla + + contrib/hbqt/hbqscintilla/doc + + contrib/hbqt/hbqscintilla/doc/en + + contrib/hbqt/hbqscintilla/qth + + + contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth + + contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth + + contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth + + contrib/hbqt/hbqscintilla/qth/QsciCommand.qth + + contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth + + contrib/hbqt/hbqscintilla/qth/QsciDocument.qth + + contrib/hbqt/hbqscintilla/qth/QsciLexer.qth + + contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth + + contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth + + contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth + + contrib/hbqt/hbqscintilla/qth/QsciStyle.qth + + contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth + + + contrib/hbqt/hbqscintilla/doc/en/class_*.txt + + Auto generated + + + contrib/hbqt/hbqscintilla/Qsci*.cpp + + Auto generated. + + + contrib/hbqt/hbqscintilla/THBQsci*.prg + + Auto generated. + + + contrib/hbqt/hbqscintilla/hbqt_garbage.h + + Auto generated. + + + contrib/hbqt/hbqscintilla/hbqscintilla.ch + + Constants for PRG code. + + + contrib/hbqt/hbqscintilla/hbqscintilla.hbp + + To build hbqscintilla.a/lib + + + contrib/hbqt/hbqscintilla/hbqscintilla.qtp + + .qth info file. + + + contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp + + contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h + + + contrib/hbqt/hbqt.h + + Added: constants hbqt_par_Qsci* + ; TODO make them local. + + + Initial upload of wrappers for QScintilla. + To generate the sources auto you need to stay in hbqt/hbqscintilla + and issue ../generator/hbqtgen. + + HB_WITH_QSCINTILLA and HB_WITH_QT need be properly defined. + I am still finding where to host modified QScintilla, any tips ? + 2010-05-27 00:15 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * utils/hbmk2/examples/contribf.hbc * contrib/Makefile diff --git a/harbour/contrib/hbqt/generator/hbqtgen.prg b/harbour/contrib/hbqt/generator/hbqtgen.prg index 2e62738468..ec990c7521 100644 --- a/harbour/contrib/hbqt/generator/hbqtgen.prg +++ b/harbour/contrib/hbqt/generator/hbqtgen.prg @@ -78,7 +78,7 @@ STATIC s_trMode := "HB_TR_DEBUG" FUNCTION Main( ... ) LOCAL aParam, cLParam LOCAL cParam, cPathOut, cPathIn, cProFile, cPathDoc - LOCAL x, cPath, cFile, cExt, cTrMode + LOCAL x, cPath, cFile, cExt, cTrMode, a_ LOCAL aPrjFiles := {} LOCAL aProFiles := {} @@ -106,7 +106,7 @@ FUNCTION Main( ... ) IF empty( cExt ) .or. lower( cExt ) != 'qtp' cExt := 'qtp' ENDIF - x := cPath + s_PathSep + cFile + '.' + cExt + x := iif( empty( cPath ), "", cPath + s_PathSep )+ cFile + "." + cExt aadd( aPrjFiles, x ) CASE right( cLParam,4 ) == '.qtp' @@ -137,6 +137,13 @@ FUNCTION Main( ... ) aadd( aPrjFiles, "qt45.qtp" ) ENDIF + IF empty( aPrjFiles ) + + FOR EACH a_ IN directory( "*.qtp" ) + aadd( aPrjFiles, a_[ 1 ] ) + NEXT + ENDIF + IF empty( aPrjFiles ) .and. empty( aProFiles ) DispHelp() RETURN nil @@ -176,11 +183,12 @@ FUNCTION Main( ... ) /*----------------------------------------------------------------------*/ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) - LOCAL cFile, cPath, cExt, cPrj, cTkn, cVal + LOCAL cFile, cPrj, cTkn, cVal // cPath, cExt, LOCAL cPIn, cPOut, cPDoc LOCAL n, nn LOCAL prj_, cpp_, prg_, a_ +#if 0 hb_fNameSplit( cProFile, @cPath, @cFile, @cExt ) IF empty( cPath ) @@ -188,7 +196,9 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) ELSE cFile := cProFile ENDIF - IF !file( cFile ) +#endif + cFile := cProFile + IF ! hb_fileExists( cFile ) RETURN nil ENDIF @@ -235,7 +245,7 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) cTkn := alltrim( substr( cPrj,1,n-1 ) ) cVal := alltrim( substr( cPrj,n+1 ) ) - IF !empty( cVal ) + //IF !empty( cVal ) DO CASE CASE cTkn == '-I' cPIn := cVal @@ -247,7 +257,7 @@ STATIC FUNCTION ManageProject( cProFile, cPathIn, cPathOut, cPathDoc ) cPDoc := cVal ENDCASE - ENDIF + //ENDIF ELSEIF lower( right( cPrj,4 ) ) == '.qth' a_:= GenSource( cPrj, cPIn, cPOut, cPDoc ) @@ -330,7 +340,7 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) ELSE cFile := cProFile ENDIF - IF !file( cFile ) + IF ! hb_fileExists( cFile ) OutStd( "Cannot find: " + cFile + s_NewLine ) RETURN { nil } ENDIF @@ -735,7 +745,7 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) /* Build Class PRG Source */ /* Distribute in specific lib subfolder */ - cFileCpp := GetSourcePathByLib( cWidget, cPathOut, '.cpp' ) + cFileCpp := GetSourcePathByLib( cWidget, cPathOut, '.cpp', NIL, cls_ ) CreateTarget( cFileCpp, cpp_ ) /* Build CLASS */ @@ -754,21 +764,25 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) /*----------------------------------------------------------------------*/ -FUNCTION GetSourcePathByLib( cWidget, cPathOut, cExt, cPre ) - LOCAL cFileOut +FUNCTION GetSourcePathByLib( cWidget, cPathOut, cExt, cPre, cls_ ) + LOCAL cFileOut, n DEFAULT cPre TO "" - IF ascan( aGui, cWidget ) > 0 - cFileOut := cPathOut + s_PathSep + "qtgui" + s_pathSep + cPre + cWidget + cExt - ELSEIF ascan( aCore, cWidget ) > 0 - cFileOut := cPathOut + s_PathSep + "qtcore" + s_pathSep + cPre + cWidget + cExt - ELSEIF ascan( aWebkit, cWidget ) > 0 - cFileOut := cPathOut + s_PathSep + "qtwebkit" + s_pathSep + cPre + cWidget + cExt - ELSEIF ascan( aNetwork, cWidget ) > 0 - cFileOut := cPathOut + s_PathSep + "qtnetwork" + s_pathSep + cPre + cWidget + cExt + IF ( n := ascan( cls_, {|e_| lower( e_[ 1 ] ) == "folder" .AND. !empty( e_[ 2 ] ) } ) ) > 0 + cFileOut := iif( empty( cPathOut ), "", cPathOut + s_PathSep + cls_[ n,2 ] + s_pathSep ) + cPre + cWidget + cExt ELSE - cFileOut := cPathOut + s_PathSep + cPre + cWidget + cExt + IF ascan( aGui, cWidget ) > 0 + cFileOut := cPathOut + s_PathSep + "qtgui" + s_pathSep + cPre + cWidget + cExt + ELSEIF ascan( aCore, cWidget ) > 0 + cFileOut := cPathOut + s_PathSep + "qtcore" + s_pathSep + cPre + cWidget + cExt + ELSEIF ascan( aWebkit, cWidget ) > 0 + cFileOut := cPathOut + s_PathSep + "qtwebkit" + s_pathSep + cPre + cWidget + cExt + ELSEIF ascan( aNetwork, cWidget ) > 0 + cFileOut := cPathOut + s_PathSep + "qtnetwork" + s_pathSep + cPre + cWidget + cExt + ELSE + cFileOut := cPathOut + s_PathSep + cPre + cWidget + cExt + ENDIF ENDIF RETURN cFileOut @@ -797,9 +811,9 @@ STATIC FUNCTION ParseProto( cProto, cWidget, txt_, doc_, aEnum, func_, lList, fB LOCAL cPre, cPar, cRet, cFun, cParas, cDocs, cCmd, cPas, s, ss, cFirstParamCast LOCAL cWdg, cCmn, cPrgRet, cHBFunc, cHBIdx, cDocNM LOCAL lSuccess, FP - LOCAL cInt := 'int,qint16,quint16,short,ushort' + LOCAL cInt := 'int,qint16,quint16,short,ushort,unsigned' LOCAL cIntLong := 'qint32,quint32,QRgb' - LOCAL cIntLongLong := 'qint64,quint64,qlonglong,qulonglong' + LOCAL cIntLongLong := 'qint64,quint64,qlonglong,qulonglong,ulong' cParas := '' cDocs := '' @@ -1685,7 +1699,7 @@ STATIC FUNCTION Build_Class( cWidget, cls_, doc_, cPathOut, subCls_ ) ENDIF /* Generate .prg */ - cFile := GetSourcePathByLib( cWidget, cPathOut, '.prg', 'T' ) + cFile := GetSourcePathByLib( cWidget, cPathOut, '.prg', 'T', cls_ ) CreateTarget( cFile, txt_ ) RETURN nil @@ -1801,7 +1815,7 @@ STATIC FUNCTION Build_Document( cWidget, cls_, doc_, cPathDoc, subCls_, docum_ ) /*----------------------------------------------------------------------*/ STATIC FUNCTION Build_GarbageFile( cpp_, cPathOut ) - LOCAL cFile := cPathOut + s_PathSep + "hbqt_garbage.h" + LOCAL cFile := iif( empty( cPathOut ), "", cPathOut + s_PathSep ) + "hbqt_garbage.h" LOCAL txt_ := {} LOCAL s @@ -1851,10 +1865,18 @@ STATIC FUNCTION Build_MakeFile( cpp_, prg_, cPathOut ) aadd( hdr_, "" ) /* Sub Libraries */ - aadd( aSubs, { "qtwebkit" , aWebkit } ) - aadd( aSubs, { "qtnetwork", aNetwork } ) - aadd( aSubs, { "qtgui" , aGui } ) - aadd( aSubs, { "qtcore" , aCore } ) + IF !empty( aWebkit ) + aadd( aSubs, { "qtwebkit" , aWebkit } ) + ENDIF + IF !empty( aNetwork ) + aadd( aSubs, { "qtnetwork", aNetwork } ) + ENDIF + IF !empty( aGui ) + aadd( aSubs, { "qtgui" , aGui } ) + ENDIF + IF !empty( aCore ) + aadd( aSubs, { "qtcore" , aCore } ) + ENDIF // FOR i := 1 TO len( aSubs ) txt_:= {} @@ -1875,7 +1897,7 @@ STATIC FUNCTION Build_MakeFile( cpp_, prg_, cPathOut ) aadd( txt_, "# Don't delete this comment, it's here to ensure empty" ) aadd( txt_, "# line above is kept intact." ) // - cFile := cPathOut + s_PathSep + aSubs[ i, 1 ] + s_PathSep + "filelist.mk" + cFile := iif( empty( cPathOut ), "", cPathOut + s_PathSep + aSubs[ i, 1 ] + s_PathSep ) + "filelist.mk" CreateTarget( cFile, txt_ ) NEXT diff --git a/harbour/contrib/hbqt/hbqscintilla/HBQsciScintilla.cpp b/harbour/contrib/hbqt/hbqscintilla/HBQsciScintilla.cpp new file mode 100644 index 0000000000..6ea4bf1578 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/HBQsciScintilla.cpp @@ -0,0 +1,154 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +#include + + +#include "hbqt_hbqsciscintilla.h" +#include "hbqt_garbage.h" + + +/* + * + */ + +typedef struct +{ + QPointer< HBQsciScintilla > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_HBQsciScintilla; + +QT_G_FUNC( hbqt_gcRelease_HBQsciScintilla ) +{ + HBQsciScintilla * ph = NULL ; + QGC_POINTER_HBQsciScintilla * p = ( QGC_POINTER_HBQsciScintilla * ) Cargo; + + if( p && p->bNew && p->ph ) + { + ph = p->ph; + if( ph ) + { + const QMetaObject * m = ( ph )->metaObject(); + if( ( QString ) m->className() != ( QString ) "QObject" ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_HBQsciScintilla /.\\ ", (void*) ph, (void*) p->ph ) ); + delete ( p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_HBQsciScintilla \\./ ", (void*) ph, (void*) p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_HBQsciScintilla ", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_HBQsciScintilla : Object already deleted!", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_HBQsciScintilla : Object not created with new=true", ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_HBQsciScintilla( void * pObj, bool bNew ) +{ + QGC_POINTER_HBQsciScintilla * p = ( QGC_POINTER_HBQsciScintilla * ) hb_gcAllocate( sizeof( QGC_POINTER_HBQsciScintilla ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< HBQsciScintilla >( ( HBQsciScintilla * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_HBQsciScintilla; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_HBQsciScintilla under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_HBQsciScintilla", pObj ) ); + } + return p; +} + +HB_FUNC( QT_HBQSCISCINTILLA ) +{ + HBQsciScintilla * pObj = NULL; + + pObj = new HBQsciScintilla( hbqt_par_QWidget( 1 ) ) ; + + hb_retptrGC( hbqt_gcAllocate_HBQsciScintilla( ( void * ) pObj, true ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciAPIs.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciAPIs.cpp new file mode 100644 index 0000000000..c5922e9baf --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciAPIs.cpp @@ -0,0 +1,360 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * Constructed[ 14/15 [ 93.33% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts) + */ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciAPIs (QsciLexer *lexer) + * virtual ~QsciAPIs () + * + */ + +typedef struct +{ + QPointer< QsciAPIs > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciAPIs; + +QT_G_FUNC( hbqt_gcRelease_QsciAPIs ) +{ + QsciAPIs * ph = NULL ; + QGC_POINTER_QsciAPIs * p = ( QGC_POINTER_QsciAPIs * ) Cargo; + + if( p && p->bNew && p->ph ) + { + ph = p->ph; + if( ph ) + { + const QMetaObject * m = ( ph )->metaObject(); + if( ( QString ) m->className() != ( QString ) "QObject" ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciAPIs /.\\ ", (void*) ph, (void*) p->ph ) ); + delete ( p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciAPIs \\./ ", (void*) ph, (void*) p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciAPIs ", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciAPIs : Object already deleted!", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciAPIs : Object not created with new=true", ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciAPIs( void * pObj, bool bNew ) +{ + QGC_POINTER_QsciAPIs * p = ( QGC_POINTER_QsciAPIs * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciAPIs ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QsciAPIs >( ( QsciAPIs * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciAPIs; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciAPIs under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciAPIs", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCIAPIS ) +{ + QsciAPIs * pObj = NULL; + + pObj = new QsciAPIs( hbqt_par_QsciLexer( 1 ) ) ; + + hb_retptrGC( hbqt_gcAllocate_QsciAPIs( ( void * ) pObj, true ) ); +} + +/* + * void add (const QString &entry) + */ +HB_FUNC( QT_QSCIAPIS_ADD ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + ( p )->add( QsciAPIs::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_ADD FP=( p )->add( QsciAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * void clear () + */ +HB_FUNC( QT_QSCIAPIS_CLEAR ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + ( p )->clear(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_CLEAR FP=( p )->clear(); p is NULL" ) ); + } +} + +/* + * bool load (const QString &fname) + */ +HB_FUNC( QT_QSCIAPIS_LOAD ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + hb_retl( ( p )->load( QsciAPIs::tr( hb_parc( 2 ) ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_LOAD FP=hb_retl( ( p )->load( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) ); + } +} + +/* + * void remove (const QString &entry) + */ +HB_FUNC( QT_QSCIAPIS_REMOVE ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + ( p )->remove( QsciAPIs::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_REMOVE FP=( p )->remove( QsciAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * void prepare () + */ +HB_FUNC( QT_QSCIAPIS_PREPARE ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + ( p )->prepare(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_PREPARE FP=( p )->prepare(); p is NULL" ) ); + } +} + +/* + * void cancelPreparation () + */ +HB_FUNC( QT_QSCIAPIS_CANCELPREPARATION ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + ( p )->cancelPreparation(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_CANCELPREPARATION FP=( p )->cancelPreparation(); p is NULL" ) ); + } +} + +/* + * QString defaultPreparedName () const + */ +HB_FUNC( QT_QSCIAPIS_DEFAULTPREPAREDNAME ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + hb_retc( ( p )->defaultPreparedName().toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_DEFAULTPREPAREDNAME FP=hb_retc( ( p )->defaultPreparedName().toAscii().data() ); p is NULL" ) ); + } +} + +/* + * bool isPrepared (const QString &fname=QString()) const + */ +HB_FUNC( QT_QSCIAPIS_ISPREPARED ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + hb_retl( ( p )->isPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_ISPREPARED FP=hb_retl( ( p )->isPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) ); + } +} + +/* + * bool loadPrepared (const QString &fname=QString()) + */ +HB_FUNC( QT_QSCIAPIS_LOADPREPARED ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + hb_retl( ( p )->loadPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_LOADPREPARED FP=hb_retl( ( p )->loadPrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) ); + } +} + +/* + * bool savePrepared (const QString &fname=QString()) const + */ +HB_FUNC( QT_QSCIAPIS_SAVEPREPARED ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + hb_retl( ( p )->savePrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_SAVEPREPARED FP=hb_retl( ( p )->savePrepared( QsciAPIs::tr( hb_parc( 2 ) ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void updateAutoCompletionList (const QStringList &context, QStringList &list) + */ +HB_FUNC( QT_QSCIAPIS_UPDATEAUTOCOMPLETIONLIST ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + ( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_UPDATEAUTOCOMPLETIONLIST FP=( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void autoCompletionSelected (const QString &sel) + */ +HB_FUNC( QT_QSCIAPIS_AUTOCOMPLETIONSELECTED ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + ( p )->autoCompletionSelected( QsciAPIs::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_AUTOCOMPLETIONSELECTED FP=( p )->autoCompletionSelected( QsciAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual bool event (QEvent *e) + */ +HB_FUNC( QT_QSCIAPIS_EVENT ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + hb_retl( ( p )->event( hbqt_par_QEvent( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_EVENT FP=hb_retl( ( p )->event( hbqt_par_QEvent( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * QStringList installedAPIFiles () const + */ +HB_FUNC( QT_QSCIAPIS_INSTALLEDAPIFILES ) +{ + QsciAPIs * p = hbqt_par_QsciAPIs( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->installedAPIFiles() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIAPIS_INSTALLEDAPIFILES FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->installedAPIFiles() ), true ) ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciAbstractAPIs.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciAbstractAPIs.cpp new file mode 100644 index 0000000000..55c50c2d9a --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciAbstractAPIs.cpp @@ -0,0 +1,176 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * Constructed[ 3/4 [ 75.00% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)=0 + */ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciAbstractAPIs (QsciLexer *lexer) + * virtual ~QsciAbstractAPIs () + * + */ + +typedef struct +{ + QPointer< QsciAbstractAPIs > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciAbstractAPIs; + +QT_G_FUNC( hbqt_gcRelease_QsciAbstractAPIs ) +{ + HB_SYMBOL_UNUSED( Cargo ); + QGC_POINTER * p = ( QGC_POINTER * ) Cargo; + + if( p && p->bNew ) + { + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciAbstractAPIs( void * pObj, bool bNew ) +{ + QGC_POINTER_QsciAbstractAPIs * p = ( QGC_POINTER_QsciAbstractAPIs * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciAbstractAPIs ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QsciAbstractAPIs >( ( QsciAbstractAPIs * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciAbstractAPIs; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciAbstractAPIs under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciAbstractAPIs", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCIABSTRACTAPIS ) +{ + +} + +/* + * QsciLexer * lexer () const + */ +HB_FUNC( QT_QSCIABSTRACTAPIS_LEXER ) +{ + QsciAbstractAPIs * p = hbqt_par_QsciAbstractAPIs( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QsciLexer( ( p )->lexer(), false ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIABSTRACTAPIS_LEXER FP=hb_retptrGC( hbqt_gcAllocate_QsciLexer( ( p )->lexer(), false ) ); p is NULL" ) ); + } +} + +/* + * virtual void updateAutoCompletionList (const QStringList &context, QStringList &list)=0 + */ +HB_FUNC( QT_QSCIABSTRACTAPIS_UPDATEAUTOCOMPLETIONLIST ) +{ + QsciAbstractAPIs * p = hbqt_par_QsciAbstractAPIs( 1 ); + if( p ) + ( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIABSTRACTAPIS_UPDATEAUTOCOMPLETIONLIST FP=( p )->updateAutoCompletionList( *hbqt_par_QStringList( 2 ), *hbqt_par_QStringList( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void autoCompletionSelected (const QString &selection) + */ +HB_FUNC( QT_QSCIABSTRACTAPIS_AUTOCOMPLETIONSELECTED ) +{ + QsciAbstractAPIs * p = hbqt_par_QsciAbstractAPIs( 1 ); + if( p ) + ( p )->autoCompletionSelected( QsciAbstractAPIs::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCIABSTRACTAPIS_AUTOCOMPLETIONSELECTED FP=( p )->autoCompletionSelected( QsciAbstractAPIs::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciCommand.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciCommand.cpp new file mode 100644 index 0000000000..8923d357ef --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciCommand.cpp @@ -0,0 +1,208 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * + * + */ + +typedef struct +{ + QsciCommand * ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciCommand; + +QT_G_FUNC( hbqt_gcRelease_QsciCommand ) +{ + HB_SYMBOL_UNUSED( Cargo ); + QGC_POINTER * p = ( QGC_POINTER * ) Cargo; + + if( p && p->bNew ) + { + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciCommand( void * pObj, bool bNew ) +{ + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() ); + + p->ph = ( QsciCommand * ) pObj; + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciCommand; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciCommand", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciCommand", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCICOMMAND ) +{ + +} + +/* + * void setKey (int key) + */ +HB_FUNC( QT_QSCICOMMAND_SETKEY ) +{ + QsciCommand * p = hbqt_par_QsciCommand( 1 ); + if( p ) + ( p )->setKey( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_SETKEY FP=( p )->setKey( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setAlternateKey (int altkey) + */ +HB_FUNC( QT_QSCICOMMAND_SETALTERNATEKEY ) +{ + QsciCommand * p = hbqt_par_QsciCommand( 1 ); + if( p ) + ( p )->setAlternateKey( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_SETALTERNATEKEY FP=( p )->setAlternateKey( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * int key () const + */ +HB_FUNC( QT_QSCICOMMAND_KEY ) +{ + QsciCommand * p = hbqt_par_QsciCommand( 1 ); + if( p ) + hb_retni( ( p )->key() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_KEY FP=hb_retni( ( p )->key() ); p is NULL" ) ); + } +} + +/* + * int alternateKey () const + */ +HB_FUNC( QT_QSCICOMMAND_ALTERNATEKEY ) +{ + QsciCommand * p = hbqt_par_QsciCommand( 1 ); + if( p ) + hb_retni( ( p )->alternateKey() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_ALTERNATEKEY FP=hb_retni( ( p )->alternateKey() ); p is NULL" ) ); + } +} + +/* + * QString description () const + */ +HB_FUNC( QT_QSCICOMMAND_DESCRIPTION ) +{ + QsciCommand * p = hbqt_par_QsciCommand( 1 ); + if( p ) + hb_retc( ( p )->description().toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_DESCRIPTION FP=hb_retc( ( p )->description().toAscii().data() ); p is NULL" ) ); + } +} + +/* + * bool validKey (int key) + */ +HB_FUNC( QT_QSCICOMMAND_VALIDKEY ) +{ + QsciCommand * p = hbqt_par_QsciCommand( 1 ); + if( p ) + hb_retl( ( p )->validKey( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMAND_VALIDKEY FP=hb_retl( ( p )->validKey( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciCommandSet.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciCommandSet.cpp new file mode 100644 index 0000000000..758f223280 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciCommandSet.cpp @@ -0,0 +1,189 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * Constructed[ 4/5 [ 80.00% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * QList< QsciCommand * > & commands () + */ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * + * + */ + +typedef struct +{ + QsciCommandSet * ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciCommandSet; + +QT_G_FUNC( hbqt_gcRelease_QsciCommandSet ) +{ + HB_SYMBOL_UNUSED( Cargo ); + QGC_POINTER * p = ( QGC_POINTER * ) Cargo; + + if( p && p->bNew ) + { + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciCommandSet( void * pObj, bool bNew ) +{ + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() ); + + p->ph = ( QsciCommandSet * ) pObj; + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciCommandSet; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciCommandSet", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciCommandSet", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCICOMMANDSET ) +{ + //hb_retptr( new QsciCommandSet() ); +} + +/* + * bool readSettings (QSettings &qs, const char *prefix="/Scintilla") + */ +HB_FUNC( QT_QSCICOMMANDSET_READSETTINGS ) +{ + QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 ); + if( p ) + hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_READSETTINGS FP=hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * bool writeSettings (QSettings &qs, const char *prefix="/Scintilla") + */ +HB_FUNC( QT_QSCICOMMANDSET_WRITESETTINGS ) +{ + QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 ); + if( p ) + hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_WRITESETTINGS FP=hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * void clearKeys () + */ +HB_FUNC( QT_QSCICOMMANDSET_CLEARKEYS ) +{ + QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 ); + if( p ) + ( p )->clearKeys(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_CLEARKEYS FP=( p )->clearKeys(); p is NULL" ) ); + } +} + +/* + * void clearAlternateKeys () + */ +HB_FUNC( QT_QSCICOMMANDSET_CLEARALTERNATEKEYS ) +{ + QsciCommandSet * p = hbqt_par_QsciCommandSet( 1 ); + if( p ) + ( p )->clearAlternateKeys(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCICOMMANDSET_CLEARALTERNATEKEYS FP=( p )->clearAlternateKeys(); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciDocument.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciDocument.cpp new file mode 100644 index 0000000000..f20f4ad171 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciDocument.cpp @@ -0,0 +1,151 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciDocument () + * QsciDocument (const QsciDocument &) + * + */ + +typedef struct +{ + QsciDocument * ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciDocument; + +QT_G_FUNC( hbqt_gcRelease_QsciDocument ) +{ + QGC_POINTER * p = ( QGC_POINTER * ) Cargo; + + if( p && p->bNew ) + { + if( p->ph ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QsciDocument /.\\", p->ph ) ); + delete ( ( QsciDocument * ) p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QsciDocument \\./", p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciDocument : Object already deleted!", p->ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciDocument : Object not created with new=true", p->ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciDocument( void * pObj, bool bNew ) +{ + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() ); + + p->ph = ( QsciDocument * ) pObj; + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciDocument; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciDocument", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciDocument", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCIDOCUMENT ) +{ + QsciDocument * pObj = NULL; + + if( HB_ISPOINTER( 1 ) ) + { + pObj = new QsciDocument( *hbqt_par_QsciDocument( 1 ) ) ; + } + else + { + pObj = new QsciDocument() ; + } + + hb_retptrGC( hbqt_gcAllocate_QsciDocument( ( void * ) pObj, true ) ); +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciLexer.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciLexer.cpp new file mode 100644 index 0000000000..f2e0d58152 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciLexer.cpp @@ -0,0 +1,753 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciLexer (QObject *parent=0) + * virtual ~QsciLexer () + * + */ + +typedef struct +{ + QPointer< QsciLexer > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciLexer; + +QT_G_FUNC( hbqt_gcRelease_QsciLexer ) +{ + HB_SYMBOL_UNUSED( Cargo ); + QGC_POINTER * p = ( QGC_POINTER * ) Cargo; + + if( p && p->bNew ) + { + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciLexer( void * pObj, bool bNew ) +{ + QGC_POINTER_QsciLexer * p = ( QGC_POINTER_QsciLexer * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciLexer ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QsciLexer >( ( QsciLexer * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciLexer; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciLexer under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciLexer", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCILEXER ) +{ + +} + +/* + * virtual const char * language () const =0 + */ +HB_FUNC( QT_QSCILEXER_LANGUAGE ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retc( ( p )->language() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_LANGUAGE FP=hb_retc( ( p )->language() ); p is NULL" ) ); + } +} + +/* + * virtual const char * lexer () const + */ +HB_FUNC( QT_QSCILEXER_LEXER ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retc( ( p )->lexer() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_LEXER FP=hb_retc( ( p )->lexer() ); p is NULL" ) ); + } +} + +/* + * virtual int lexerId () const + */ +HB_FUNC( QT_QSCILEXER_LEXERID ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retni( ( p )->lexerId() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_LEXERID FP=hb_retni( ( p )->lexerId() ); p is NULL" ) ); + } +} + +/* + * QsciAbstractAPIs * apis () const + */ +HB_FUNC( QT_QSCILEXER_APIS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QsciAbstractAPIs( ( p )->apis(), false ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_APIS FP=hb_retptrGC( hbqt_gcAllocate_QsciAbstractAPIs( ( p )->apis(), false ) ); p is NULL" ) ); + } +} + +/* + * virtual const char * autoCompletionFillups () const + */ +HB_FUNC( QT_QSCILEXER_AUTOCOMPLETIONFILLUPS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retc( ( p )->autoCompletionFillups() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_AUTOCOMPLETIONFILLUPS FP=hb_retc( ( p )->autoCompletionFillups() ); p is NULL" ) ); + } +} + +/* + * virtual QStringList autoCompletionWordSeparators () const + */ +HB_FUNC( QT_QSCILEXER_AUTOCOMPLETIONWORDSEPARATORS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_AUTOCOMPLETIONWORDSEPARATORS FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); p is NULL" ) ); + } +} + +/* + * int autoIndentStyle () + */ +HB_FUNC( QT_QSCILEXER_AUTOINDENTSTYLE ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retni( ( p )->autoIndentStyle() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_AUTOINDENTSTYLE FP=hb_retni( ( p )->autoIndentStyle() ); p is NULL" ) ); + } +} + +/* + * virtual const char * blockEnd (int *style=0) const + */ +HB_FUNC( QT_QSCILEXER_BLOCKEND ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockEnd( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKEND FP=hb_retc( ( p )->blockEnd( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * virtual int blockLookback () const + */ +HB_FUNC( QT_QSCILEXER_BLOCKLOOKBACK ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retni( ( p )->blockLookback() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKLOOKBACK FP=hb_retni( ( p )->blockLookback() ); p is NULL" ) ); + } +} + +/* + * virtual const char * blockStart (int *style=0) const + */ +HB_FUNC( QT_QSCILEXER_BLOCKSTART ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockStart( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKSTART FP=hb_retc( ( p )->blockStart( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * virtual const char * blockStartKeyword (int *style=0) const + */ +HB_FUNC( QT_QSCILEXER_BLOCKSTARTKEYWORD ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockStartKeyword( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BLOCKSTARTKEYWORD FP=hb_retc( ( p )->blockStartKeyword( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * virtual int braceStyle () const + */ +HB_FUNC( QT_QSCILEXER_BRACESTYLE ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retni( ( p )->braceStyle() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_BRACESTYLE FP=hb_retni( ( p )->braceStyle() ); p is NULL" ) ); + } +} + +/* + * virtual bool caseSensitive () const + */ +HB_FUNC( QT_QSCILEXER_CASESENSITIVE ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retl( ( p )->caseSensitive() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_CASESENSITIVE FP=hb_retl( ( p )->caseSensitive() ); p is NULL" ) ); + } +} + +/* + * virtual QColor color (int style) const + */ +HB_FUNC( QT_QSCILEXER_COLOR ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_COLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * virtual bool eolFill (int style) const + */ +HB_FUNC( QT_QSCILEXER_EOLFILL ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retl( ( p )->eolFill( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_EOLFILL FP=hb_retl( ( p )->eolFill( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual QFont font (int style) const + */ +HB_FUNC( QT_QSCILEXER_FONT ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_FONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * virtual int indentationGuideView () const + */ +HB_FUNC( QT_QSCILEXER_INDENTATIONGUIDEVIEW ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retni( ( p )->indentationGuideView() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_INDENTATIONGUIDEVIEW FP=hb_retni( ( p )->indentationGuideView() ); p is NULL" ) ); + } +} + +/* + * virtual const char * keywords (int set) const + */ +HB_FUNC( QT_QSCILEXER_KEYWORDS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_KEYWORDS FP=hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual int defaultStyle () const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTSTYLE ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retni( ( p )->defaultStyle() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTSTYLE FP=hb_retni( ( p )->defaultStyle() ); p is NULL" ) ); + } +} + +/* + * virtual QString description (int style) const =0 + */ +HB_FUNC( QT_QSCILEXER_DESCRIPTION ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DESCRIPTION FP=hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) ); + } +} + +/* + * virtual QColor paper (int style) const + */ +HB_FUNC( QT_QSCILEXER_PAPER ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_PAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * QColor defaultColor () const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTCOLOR ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTCOLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor() ), true ) ); p is NULL" ) ); + } +} + +/* + * virtual QColor defaultColor (int style) const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTCOLOR_1 ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTCOLOR_1 FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * virtual bool defaultEolFill (int style) const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTEOLFILL ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTEOLFILL FP=hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * QFont defaultFont () const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTFONT ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTFONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont() ), true ) ); p is NULL" ) ); + } +} + +/* + * virtual QFont defaultFont (int style) const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTFONT_1 ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTFONT_1 FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * QColor defaultPaper () const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTPAPER ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTPAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper() ), true ) ); p is NULL" ) ); + } +} + +/* + * virtual QColor defaultPaper (int style) const + */ +HB_FUNC( QT_QSCILEXER_DEFAULTPAPER_1 ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_DEFAULTPAPER_1 FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * QsciScintilla * editor () const + */ +HB_FUNC( QT_QSCILEXER_EDITOR ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QsciScintilla( ( p )->editor(), false ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_EDITOR FP=hb_retptrGC( hbqt_gcAllocate_QsciScintilla( ( p )->editor(), false ) ); p is NULL" ) ); + } +} + +/* + * virtual void setEditor (QsciScintilla *editor) + */ +HB_FUNC( QT_QSCILEXER_SETEDITOR ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setEditor( hbqt_par_QsciScintilla( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETEDITOR FP=( p )->setEditor( hbqt_par_QsciScintilla( 2 ) ); p is NULL" ) ); + } +} + +/* + * bool readSettings (QSettings &qs, const char *prefix="/Scintilla") + */ +HB_FUNC( QT_QSCILEXER_READSETTINGS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_READSETTINGS FP=hb_retl( ( p )->readSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void refreshProperties () + */ +HB_FUNC( QT_QSCILEXER_REFRESHPROPERTIES ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->refreshProperties(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_REFRESHPROPERTIES FP=( p )->refreshProperties(); p is NULL" ) ); + } +} + +/* + * virtual int styleBitsNeeded () const + */ +HB_FUNC( QT_QSCILEXER_STYLEBITSNEEDED ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retni( ( p )->styleBitsNeeded() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_STYLEBITSNEEDED FP=hb_retni( ( p )->styleBitsNeeded() ); p is NULL" ) ); + } +} + +/* + * virtual const char * wordCharacters () const + */ +HB_FUNC( QT_QSCILEXER_WORDCHARACTERS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retc( ( p )->wordCharacters() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_WORDCHARACTERS FP=hb_retc( ( p )->wordCharacters() ); p is NULL" ) ); + } +} + +/* + * bool writeSettings (QSettings &qs, const char *prefix="/Scintilla") const + */ +HB_FUNC( QT_QSCILEXER_WRITESETTINGS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_WRITESETTINGS FP=hb_retl( ( p )->writeSettings( *hbqt_par_QSettings( 2 ), hbqt_par_char( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * void setAPIs (QsciAbstractAPIs *apis) + */ +HB_FUNC( QT_QSCILEXER_SETAPIS ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setAPIs( hbqt_par_QsciAbstractAPIs( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETAPIS FP=( p )->setAPIs( hbqt_par_QsciAbstractAPIs( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setDefaultColor (const QColor &c) + */ +HB_FUNC( QT_QSCILEXER_SETDEFAULTCOLOR ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setDefaultColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETDEFAULTCOLOR FP=( p )->setDefaultColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setDefaultFont (const QFont &f) + */ +HB_FUNC( QT_QSCILEXER_SETDEFAULTFONT ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setDefaultFont( *hbqt_par_QFont( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETDEFAULTFONT FP=( p )->setDefaultFont( *hbqt_par_QFont( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setDefaultPaper (const QColor &c) + */ +HB_FUNC( QT_QSCILEXER_SETDEFAULTPAPER ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setDefaultPaper( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETDEFAULTPAPER FP=( p )->setDefaultPaper( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setAutoIndentStyle (int autoindentstyle) + */ +HB_FUNC( QT_QSCILEXER_SETAUTOINDENTSTYLE ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setAutoIndentStyle( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETAUTOINDENTSTYLE FP=( p )->setAutoIndentStyle( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setColor (const QColor &c, int style=-1) + */ +HB_FUNC( QT_QSCILEXER_SETCOLOR ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETCOLOR FP=( p )->setColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setEolFill (bool eoffill, int style=-1) + */ +HB_FUNC( QT_QSCILEXER_SETEOLFILL ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setEolFill( hb_parl( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETEOLFILL FP=( p )->setEolFill( hb_parl( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFont (const QFont &f, int style=-1) + */ +HB_FUNC( QT_QSCILEXER_SETFONT ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setFont( *hbqt_par_QFont( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETFONT FP=( p )->setFont( *hbqt_par_QFont( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setPaper (const QColor &c, int style=-1) + */ +HB_FUNC( QT_QSCILEXER_SETPAPER ) +{ + QsciLexer * p = hbqt_par_QsciLexer( 1 ); + if( p ) + ( p )->setPaper( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXER_SETPAPER FP=( p )->setPaper( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciLexerCPP.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciLexerCPP.cpp new file mode 100644 index 0000000000..cb3c8aceb6 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciLexerCPP.cpp @@ -0,0 +1,572 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * enum { + * Default = 0, Comment = 1, CommentLine = 2, + * CommentDoc = 3, Number = 4, Keyword = 5, + * DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8, + * PreProcessor = 9, Operator = 10, Identifier = 11, + * UnclosedString = 12, VerbatimString = 13, Regex = 14, + * CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17, + * CommentDocKeywordError = 18, GlobalClass = 19 + * } + */ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciLexerCPP (QObject *parent=0, bool caseInsensitiveKeywords=false) + * virtual ~QsciLexerCPP () + * + */ + +typedef struct +{ + QPointer< QsciLexerCPP > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciLexerCPP; + +QT_G_FUNC( hbqt_gcRelease_QsciLexerCPP ) +{ + QsciLexerCPP * ph = NULL ; + QGC_POINTER_QsciLexerCPP * p = ( QGC_POINTER_QsciLexerCPP * ) Cargo; + + if( p && p->bNew && p->ph ) + { + ph = p->ph; + if( ph ) + { + const QMetaObject * m = ( ph )->metaObject(); + if( ( QString ) m->className() != ( QString ) "QObject" ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerCPP /.\\ ", (void*) ph, (void*) p->ph ) ); + delete ( p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerCPP \\./ ", (void*) ph, (void*) p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciLexerCPP ", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciLexerCPP : Object already deleted!", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciLexerCPP : Object not created with new=true", ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciLexerCPP( void * pObj, bool bNew ) +{ + QGC_POINTER_QsciLexerCPP * p = ( QGC_POINTER_QsciLexerCPP * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciLexerCPP ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QsciLexerCPP >( ( QsciLexerCPP * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciLexerCPP; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciLexerCPP under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciLexerCPP", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCILEXERCPP ) +{ + QsciLexerCPP * pObj = NULL; + + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + pObj = new QsciLexerCPP( hbqt_par_QObject( 1 ) ) ; + } + else if( hb_pcount() == 1 && HB_ISLOG( 1 ) ) + { + pObj = new QsciLexerCPP( 0, hb_parl( 1 ) ) ; + } + else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) ) + { + pObj = new QsciLexerCPP( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) ; + } + else + { + pObj = new QsciLexerCPP() ; + } + + hb_retptrGC( hbqt_gcAllocate_QsciLexerCPP( ( void * ) pObj, true ) ); +} + +/* + * const char * language () const + */ +HB_FUNC( QT_QSCILEXERCPP_LANGUAGE ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retc( ( p )->language() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_LANGUAGE FP=hb_retc( ( p )->language() ); p is NULL" ) ); + } +} + +/* + * const char * lexer () const + */ +HB_FUNC( QT_QSCILEXERCPP_LEXER ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retc( ( p )->lexer() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_LEXER FP=hb_retc( ( p )->lexer() ); p is NULL" ) ); + } +} + +/* + * QStringList autoCompletionWordSeparators () const + */ +HB_FUNC( QT_QSCILEXERCPP_AUTOCOMPLETIONWORDSEPARATORS ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_AUTOCOMPLETIONWORDSEPARATORS FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); p is NULL" ) ); + } +} + +/* + * const char * blockEnd (int *style=0) const + */ +HB_FUNC( QT_QSCILEXERCPP_BLOCKEND ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockEnd( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BLOCKEND FP=hb_retc( ( p )->blockEnd( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * const char * blockStart (int *style=0) const + */ +HB_FUNC( QT_QSCILEXERCPP_BLOCKSTART ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockStart( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BLOCKSTART FP=hb_retc( ( p )->blockStart( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * const char * blockStartKeyword (int *style=0) const + */ +HB_FUNC( QT_QSCILEXERCPP_BLOCKSTARTKEYWORD ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockStartKeyword( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BLOCKSTARTKEYWORD FP=hb_retc( ( p )->blockStartKeyword( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * int braceStyle () const + */ +HB_FUNC( QT_QSCILEXERCPP_BRACESTYLE ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retni( ( p )->braceStyle() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_BRACESTYLE FP=hb_retni( ( p )->braceStyle() ); p is NULL" ) ); + } +} + +/* + * const char * wordCharacters () const + */ +HB_FUNC( QT_QSCILEXERCPP_WORDCHARACTERS ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retc( ( p )->wordCharacters() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_WORDCHARACTERS FP=hb_retc( ( p )->wordCharacters() ); p is NULL" ) ); + } +} + +/* + * QColor defaultColor (int style) const + */ +HB_FUNC( QT_QSCILEXERCPP_DEFAULTCOLOR ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTCOLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * bool defaultEolFill (int style) const + */ +HB_FUNC( QT_QSCILEXERCPP_DEFAULTEOLFILL ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTEOLFILL FP=hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * QFont defaultFont (int style) const + */ +HB_FUNC( QT_QSCILEXERCPP_DEFAULTFONT ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTFONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * QColor defaultPaper (int style) const + */ +HB_FUNC( QT_QSCILEXERCPP_DEFAULTPAPER ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DEFAULTPAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * const char * keywords (int set) const + */ +HB_FUNC( QT_QSCILEXERCPP_KEYWORDS ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_KEYWORDS FP=hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * QString description (int style) const + */ +HB_FUNC( QT_QSCILEXERCPP_DESCRIPTION ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DESCRIPTION FP=hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) ); + } +} + +/* + * void refreshProperties () + */ +HB_FUNC( QT_QSCILEXERCPP_REFRESHPROPERTIES ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + ( p )->refreshProperties(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_REFRESHPROPERTIES FP=( p )->refreshProperties(); p is NULL" ) ); + } +} + +/* + * bool foldAtElse () const + */ +HB_FUNC( QT_QSCILEXERCPP_FOLDATELSE ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retl( ( p )->foldAtElse() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDATELSE FP=hb_retl( ( p )->foldAtElse() ); p is NULL" ) ); + } +} + +/* + * bool foldComments () const + */ +HB_FUNC( QT_QSCILEXERCPP_FOLDCOMMENTS ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retl( ( p )->foldComments() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDCOMMENTS FP=hb_retl( ( p )->foldComments() ); p is NULL" ) ); + } +} + +/* + * bool foldCompact () const + */ +HB_FUNC( QT_QSCILEXERCPP_FOLDCOMPACT ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retl( ( p )->foldCompact() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDCOMPACT FP=hb_retl( ( p )->foldCompact() ); p is NULL" ) ); + } +} + +/* + * bool foldPreprocessor () const + */ +HB_FUNC( QT_QSCILEXERCPP_FOLDPREPROCESSOR ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retl( ( p )->foldPreprocessor() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_FOLDPREPROCESSOR FP=hb_retl( ( p )->foldPreprocessor() ); p is NULL" ) ); + } +} + +/* + * bool stylePreprocessor () const + */ +HB_FUNC( QT_QSCILEXERCPP_STYLEPREPROCESSOR ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retl( ( p )->stylePreprocessor() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_STYLEPREPROCESSOR FP=hb_retl( ( p )->stylePreprocessor() ); p is NULL" ) ); + } +} + +/* + * void setDollarsAllowed (bool allowed) + */ +HB_FUNC( QT_QSCILEXERCPP_SETDOLLARSALLOWED ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + ( p )->setDollarsAllowed( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETDOLLARSALLOWED FP=( p )->setDollarsAllowed( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * bool dollarsAllowed () const + */ +HB_FUNC( QT_QSCILEXERCPP_DOLLARSALLOWED ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + hb_retl( ( p )->dollarsAllowed() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_DOLLARSALLOWED FP=hb_retl( ( p )->dollarsAllowed() ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldAtElse (bool fold) + */ +HB_FUNC( QT_QSCILEXERCPP_SETFOLDATELSE ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + ( p )->setFoldAtElse( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDATELSE FP=( p )->setFoldAtElse( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldComments (bool fold) + */ +HB_FUNC( QT_QSCILEXERCPP_SETFOLDCOMMENTS ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + ( p )->setFoldComments( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDCOMMENTS FP=( p )->setFoldComments( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldCompact (bool fold) + */ +HB_FUNC( QT_QSCILEXERCPP_SETFOLDCOMPACT ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + ( p )->setFoldCompact( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDCOMPACT FP=( p )->setFoldCompact( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldPreprocessor (bool fold) + */ +HB_FUNC( QT_QSCILEXERCPP_SETFOLDPREPROCESSOR ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + ( p )->setFoldPreprocessor( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETFOLDPREPROCESSOR FP=( p )->setFoldPreprocessor( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setStylePreprocessor (bool style) + */ +HB_FUNC( QT_QSCILEXERCPP_SETSTYLEPREPROCESSOR ) +{ + QsciLexerCPP * p = hbqt_par_QsciLexerCPP( 1 ); + if( p ) + ( p )->setStylePreprocessor( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERCPP_SETSTYLEPREPROCESSOR FP=( p )->setStylePreprocessor( hb_parl( 2 ) ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciLexerFlagship.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciLexerFlagship.cpp new file mode 100644 index 0000000000..11d9f6e0c7 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciLexerFlagship.cpp @@ -0,0 +1,572 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * enum { + * Default = 0, Comment = 1, CommentLine = 2, + * CommentDoc = 3, Number = 4, Keyword = 5, + * DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8, + * PreProcessor = 9, Operator = 10, Identifier = 11, + * UnclosedString = 12, VerbatimString = 13, Regex = 14, + * CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17, + * CommentDocKeywordError = 18, GlobalClass = 19 + * } + */ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciLexerFlagship (QObject *parent=0, bool caseInsensitiveKeywords=false) + * virtual ~QsciLexerFlagship () + * + */ + +typedef struct +{ + QPointer< QsciLexerFlagship > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciLexerFlagship; + +QT_G_FUNC( hbqt_gcRelease_QsciLexerFlagship ) +{ + QsciLexerFlagship * ph = NULL ; + QGC_POINTER_QsciLexerFlagship * p = ( QGC_POINTER_QsciLexerFlagship * ) Cargo; + + if( p && p->bNew && p->ph ) + { + ph = p->ph; + if( ph ) + { + const QMetaObject * m = ( ph )->metaObject(); + if( ( QString ) m->className() != ( QString ) "QObject" ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerFlagship /.\\ ", (void*) ph, (void*) p->ph ) ); + delete ( p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciLexerFlagship \\./ ", (void*) ph, (void*) p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciLexerFlagship ", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciLexerFlagship : Object already deleted!", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciLexerFlagship : Object not created with new=true", ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciLexerFlagship( void * pObj, bool bNew ) +{ + QGC_POINTER_QsciLexerFlagship * p = ( QGC_POINTER_QsciLexerFlagship * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciLexerFlagship ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QsciLexerFlagship >( ( QsciLexerFlagship * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciLexerFlagship; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciLexerFlagship under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciLexerFlagship", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCILEXERFLAGSHIP ) +{ + QsciLexerFlagship * pObj = NULL; + + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + pObj = new QsciLexerFlagship( hbqt_par_QObject( 1 ) ) ; + } + else if( hb_pcount() == 1 && HB_ISLOG( 1 ) ) + { + pObj = new QsciLexerFlagship( 0, hb_parl( 1 ) ) ; + } + else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) ) + { + pObj = new QsciLexerFlagship( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) ; + } + else + { + pObj = new QsciLexerFlagship() ; + } + + hb_retptrGC( hbqt_gcAllocate_QsciLexerFlagship( ( void * ) pObj, true ) ); +} + +/* + * const char * language () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_LANGUAGE ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retc( ( p )->language() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_LANGUAGE FP=hb_retc( ( p )->language() ); p is NULL" ) ); + } +} + +/* + * const char * lexer () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_LEXER ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retc( ( p )->lexer() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_LEXER FP=hb_retc( ( p )->lexer() ); p is NULL" ) ); + } +} + +/* + * QStringList autoCompletionWordSeparators () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_AUTOCOMPLETIONWORDSEPARATORS ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_AUTOCOMPLETIONWORDSEPARATORS FP=hb_retptrGC( hbqt_gcAllocate_QStringList( new QStringList( ( p )->autoCompletionWordSeparators() ), true ) ); p is NULL" ) ); + } +} + +/* + * const char * blockEnd (int *style=0) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_BLOCKEND ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockEnd( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BLOCKEND FP=hb_retc( ( p )->blockEnd( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * const char * blockStart (int *style=0) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_BLOCKSTART ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockStart( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BLOCKSTART FP=hb_retc( ( p )->blockStart( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * const char * blockStartKeyword (int *style=0) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_BLOCKSTARTKEYWORD ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + int iStyle = 0; + + if( p ) + hb_retc( ( p )->blockStartKeyword( &iStyle ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BLOCKSTARTKEYWORD FP=hb_retc( ( p )->blockStartKeyword( &iStyle ) ); p is NULL" ) ); + } + + hb_storni( iStyle, 2 ); +} + +/* + * int braceStyle () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_BRACESTYLE ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retni( ( p )->braceStyle() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_BRACESTYLE FP=hb_retni( ( p )->braceStyle() ); p is NULL" ) ); + } +} + +/* + * const char * wordCharacters () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_WORDCHARACTERS ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retc( ( p )->wordCharacters() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_WORDCHARACTERS FP=hb_retc( ( p )->wordCharacters() ); p is NULL" ) ); + } +} + +/* + * QColor defaultColor (int style) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTCOLOR ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTCOLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultColor( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * bool defaultEolFill (int style) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTEOLFILL ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTEOLFILL FP=hb_retl( ( p )->defaultEolFill( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * QFont defaultFont (int style) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTFONT ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTFONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->defaultFont( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * QColor defaultPaper (int style) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_DEFAULTPAPER ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DEFAULTPAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->defaultPaper( hb_parni( 2 ) ) ), true ) ); p is NULL" ) ); + } +} + +/* + * const char * keywords (int set) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_KEYWORDS ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_KEYWORDS FP=hb_retc( ( p )->keywords( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * QString description (int style) const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_DESCRIPTION ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DESCRIPTION FP=hb_retc( ( p )->description( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) ); + } +} + +/* + * void refreshProperties () + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_REFRESHPROPERTIES ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + ( p )->refreshProperties(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_REFRESHPROPERTIES FP=( p )->refreshProperties(); p is NULL" ) ); + } +} + +/* + * bool foldAtElse () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDATELSE ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retl( ( p )->foldAtElse() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDATELSE FP=hb_retl( ( p )->foldAtElse() ); p is NULL" ) ); + } +} + +/* + * bool foldComments () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDCOMMENTS ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retl( ( p )->foldComments() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDCOMMENTS FP=hb_retl( ( p )->foldComments() ); p is NULL" ) ); + } +} + +/* + * bool foldCompact () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDCOMPACT ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retl( ( p )->foldCompact() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDCOMPACT FP=hb_retl( ( p )->foldCompact() ); p is NULL" ) ); + } +} + +/* + * bool foldPreprocessor () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_FOLDPREPROCESSOR ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retl( ( p )->foldPreprocessor() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_FOLDPREPROCESSOR FP=hb_retl( ( p )->foldPreprocessor() ); p is NULL" ) ); + } +} + +/* + * bool stylePreprocessor () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_STYLEPREPROCESSOR ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retl( ( p )->stylePreprocessor() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_STYLEPREPROCESSOR FP=hb_retl( ( p )->stylePreprocessor() ); p is NULL" ) ); + } +} + +/* + * void setDollarsAllowed (bool allowed) + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_SETDOLLARSALLOWED ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + ( p )->setDollarsAllowed( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETDOLLARSALLOWED FP=( p )->setDollarsAllowed( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * bool dollarsAllowed () const + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_DOLLARSALLOWED ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + hb_retl( ( p )->dollarsAllowed() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_DOLLARSALLOWED FP=hb_retl( ( p )->dollarsAllowed() ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldAtElse (bool fold) + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDATELSE ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + ( p )->setFoldAtElse( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDATELSE FP=( p )->setFoldAtElse( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldComments (bool fold) + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDCOMMENTS ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + ( p )->setFoldComments( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDCOMMENTS FP=( p )->setFoldComments( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldCompact (bool fold) + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDCOMPACT ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + ( p )->setFoldCompact( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDCOMPACT FP=( p )->setFoldCompact( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFoldPreprocessor (bool fold) + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_SETFOLDPREPROCESSOR ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + ( p )->setFoldPreprocessor( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETFOLDPREPROCESSOR FP=( p )->setFoldPreprocessor( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setStylePreprocessor (bool style) + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP_SETSTYLEPREPROCESSOR ) +{ + QsciLexerFlagship * p = hbqt_par_QsciLexerFlagship( 1 ); + if( p ) + ( p )->setStylePreprocessor( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCILEXERFLAGSHIP_SETSTYLEPREPROCESSOR FP=( p )->setStylePreprocessor( hb_parl( 2 ) ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciScintilla.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciScintilla.cpp new file mode 100644 index 0000000000..f40901f3fe --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciScintilla.cpp @@ -0,0 +1,2960 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * enum { AiMaintain = 0x01, AiOpening = 0x02, AiClosing = 0x04 } + * enum AnnotationDisplay { AnnotationHidden = ANNOTATION_HIDDEN, AnnotationStandard = ANNOTATION_STANDARD, AnnotationBoxed = ANNOTATION_BOXED } + * enum AutoCompletionSource { + * AcsNone, AcsAll, AcsDocument, AcsAPIs + * } + * enum BraceMatch { NoBraceMatch, StrictBraceMatch, SloppyBraceMatch } + * enum CallTipsStyle { + * CallTipsNone, CallTipsNoContext, CallTipsNoAutoCompletionContext, CallTipsContext + * } + * enum EdgeMode { EdgeNone = EDGE_NONE, EdgeLine = EDGE_LINE, EdgeBackground = EDGE_BACKGROUND } + * enum EolMode { EolWindows = SC_EOL_CRLF, EolUnix = SC_EOL_LF, EolMac = SC_EOL_CR } + * enum FoldStyle { + * NoFoldStyle, PlainFoldStyle, CircledFoldStyle, + * BoxedFoldStyle, CircledTreeFoldStyle, BoxedTreeFoldStyle + * } + * enum MarginType { + * SymbolMargin = SC_MARGIN_SYMBOL, SymbolMarginDefaultForegroundColor = SC_MARGIN_FORE, SymbolMarginDefaultBackgroundColor = SC_MARGIN_BACK, + * NumberMargin = SC_MARGIN_NUMBER, TextMargin = SC_MARGIN_TEXT, TextMarginRightJustified = SC_MARGIN_RTEXT + * } + * enum MarkerSymbol { + * Circle = SC_MARK_CIRCLE, Rectangle = SC_MARK_ROUNDRECT, RightTriangle = SC_MARK_ARROW, + * SmallRectangle = SC_MARK_SMALLRECT, RightArrow = SC_MARK_SHORTARROW, Invisible = SC_MARK_EMPTY, + * DownTriangle = SC_MARK_ARROWDOWN, Minus = SC_MARK_MINUS, Plus = SC_MARK_PLUS, + * VerticalLine = SC_MARK_VLINE, BottomLeftCorner = SC_MARK_LCORNER, LeftSideSplitter = SC_MARK_TCORNER, + * BoxedPlus = SC_MARK_BOXPLUS, BoxedPlusConnected = SC_MARK_BOXPLUSCONNECTED, BoxedMinus = SC_MARK_BOXMINUS, + * BoxedMinusConnected = SC_MARK_BOXMINUSCONNECTED, RoundedBottomLeftCorner = SC_MARK_LCORNERCURVE, LeftSideRoundedSplitter = SC_MARK_TCORNERCURVE, + * CircledPlus = SC_MARK_CIRCLEPLUS, CircledPlusConnected = SC_MARK_CIRCLEPLUSCONNECTED, CircledMinus = SC_MARK_CIRCLEMINUS, + * CircledMinusConnected = SC_MARK_CIRCLEMINUSCONNECTED, Background = SC_MARK_BACKGROUND, ThreeDots = SC_MARK_DOTDOTDOT, + * ThreeRightArrows = SC_MARK_ARROWS + * } + * enum WhitespaceVisibility { WsInvisible = SCWS_INVISIBLE, WsVisible = SCWS_VISIBLEALWAYS, WsVisibleAfterIndent = SCWS_VISIBLEAFTERINDENT } + * enum WrapMode { WrapNone = SC_WRAP_NONE, WrapWord = SC_WRAP_WORD, WrapCharacter = SC_WRAP_CHAR } + * enum WrapVisualFlag { WrapFlagNone, WrapFlagByText, WrapFlagByBorder } + */ + +/* + * Constructed[ 195/197 [ 98.98% ] ] + * + * *** Unconvered Prototypes *** + * ----------------------------- + * + * void annotate (int line, const QList< QsciStyledText > &text) + * void setMarginText (int line, const QList< QsciStyledText > &text) + */ + +#include + + +#include "qsciscintilla.h" +#include "hbqt_garbage.h" + + +/* + * QsciScintilla (QWidget *parent=0) + * virtual ~QsciScintilla () + */ + +typedef struct +{ + QPointer< QsciScintilla > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciScintilla; + +QT_G_FUNC( hbqt_gcRelease_QsciScintilla ) +{ + QsciScintilla * ph = NULL ; + QGC_POINTER_QsciScintilla * p = ( QGC_POINTER_QsciScintilla * ) Cargo; + + if( p && p->bNew && p->ph ) + { + ph = p->ph; + if( ph ) + { + const QMetaObject * m = ( ph )->metaObject(); + if( ( QString ) m->className() != ( QString ) "QObject" ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciScintilla /.\\ ", (void*) ph, (void*) p->ph ) ); + delete ( p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciScintilla \\./ ", (void*) ph, (void*) p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciScintilla ", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciScintilla : Object already deleted!", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciScintilla : Object not created with new=true", ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciScintilla( void * pObj, bool bNew ) +{ + QGC_POINTER_QsciScintilla * p = ( QGC_POINTER_QsciScintilla * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciScintilla ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QsciScintilla >( ( QsciScintilla * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciScintilla; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciScintilla under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciScintilla", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCISCINTILLA ) +{ + QsciScintilla * pObj = NULL; + + if( HB_ISPOINTER( 1 ) ) + { + pObj = new QsciScintilla( hbqt_par_QWidget( 1 ) ) ; + } + else + { + pObj = new QsciScintilla() ; + } + + hb_retptrGC( hbqt_gcAllocate_QsciScintilla( ( void * ) pObj, true ) ); +} + +/* + * void annotate (int line, const QString &text, int style) + */ +HB_FUNC( QT_QSCISCINTILLA_ANNOTATE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->annotate( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), hb_parni( 4 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ANNOTATE FP=( p )->annotate( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), hb_parni( 4 ) ); p is NULL" ) ); + } +} + +/* + * void annotate (int line, const QString &text, const QsciStyle &style) + */ +HB_FUNC( QT_QSCISCINTILLA_ANNOTATE_1 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->annotate( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), *hbqt_par_QsciStyle( 4 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ANNOTATE_1 FP=( p )->annotate( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), *hbqt_par_QsciStyle( 4 ) ); p is NULL" ) ); + } +} + +/* + * void annotate (int line, const QsciStyledText &text) + */ +HB_FUNC( QT_QSCISCINTILLA_ANNOTATE_2 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->annotate( hb_parni( 2 ), *hbqt_par_QsciStyledText( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ANNOTATE_2 FP=( p )->annotate( hb_parni( 2 ), *hbqt_par_QsciStyledText( 3 ) ); p is NULL" ) ); + } +} + +/* + * QString annotation (int line) const + */ +HB_FUNC( QT_QSCISCINTILLA_ANNOTATION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retc( ( p )->annotation( hb_parni( 2 ) ).toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ANNOTATION FP=hb_retc( ( p )->annotation( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) ); + } +} + +/* + * AnnotationDisplay annotationDisplay () const + */ +HB_FUNC( QT_QSCISCINTILLA_ANNOTATIONDISPLAY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::AnnotationDisplay ) ( p )->annotationDisplay() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ANNOTATIONDISPLAY FP=hb_retni( ( QsciScintilla::AnnotationDisplay ) ( p )->annotationDisplay() ); p is NULL" ) ); + } +} + +/* + * void clearAnnotations (int line=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_CLEARANNOTATIONS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->clearAnnotations( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CLEARANNOTATIONS FP=( p )->clearAnnotations( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * bool autoCompletionCaseSensitivity () const + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETIONCASESENSITIVITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->autoCompletionCaseSensitivity() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETIONCASESENSITIVITY FP=hb_retl( ( p )->autoCompletionCaseSensitivity() ); p is NULL" ) ); + } +} + +/* + * bool autoCompletionFillupsEnabled () const + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETIONFILLUPSENABLED ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->autoCompletionFillupsEnabled() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETIONFILLUPSENABLED FP=hb_retl( ( p )->autoCompletionFillupsEnabled() ); p is NULL" ) ); + } +} + +/* + * bool autoCompletionReplaceWord () const + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETIONREPLACEWORD ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->autoCompletionReplaceWord() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETIONREPLACEWORD FP=hb_retl( ( p )->autoCompletionReplaceWord() ); p is NULL" ) ); + } +} + +/* + * bool autoCompletionShowSingle () const + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETIONSHOWSINGLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->autoCompletionShowSingle() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETIONSHOWSINGLE FP=hb_retl( ( p )->autoCompletionShowSingle() ); p is NULL" ) ); + } +} + +/* + * AutoCompletionSource autoCompletionSource () const + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETIONSOURCE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::AutoCompletionSource ) ( p )->autoCompletionSource() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETIONSOURCE FP=hb_retni( ( QsciScintilla::AutoCompletionSource ) ( p )->autoCompletionSource() ); p is NULL" ) ); + } +} + +/* + * int autoCompletionThreshold () const + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETIONTHRESHOLD ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->autoCompletionThreshold() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETIONTHRESHOLD FP=hb_retni( ( p )->autoCompletionThreshold() ); p is NULL" ) ); + } +} + +/* + * bool autoIndent () const + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOINDENT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->autoIndent() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOINDENT FP=hb_retl( ( p )->autoIndent() ); p is NULL" ) ); + } +} + +/* + * bool backspaceUnindents () const + */ +HB_FUNC( QT_QSCISCINTILLA_BACKSPACEUNINDENTS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->backspaceUnindents() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_BACKSPACEUNINDENTS FP=hb_retl( ( p )->backspaceUnindents() ); p is NULL" ) ); + } +} + +/* + * void beginUndoAction () + */ +HB_FUNC( QT_QSCISCINTILLA_BEGINUNDOACTION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->beginUndoAction(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_BEGINUNDOACTION FP=( p )->beginUndoAction(); p is NULL" ) ); + } +} + +/* + * BraceMatch braceMatching () const + */ +HB_FUNC( QT_QSCISCINTILLA_BRACEMATCHING ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::BraceMatch ) ( p )->braceMatching() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_BRACEMATCHING FP=hb_retni( ( QsciScintilla::BraceMatch ) ( p )->braceMatching() ); p is NULL" ) ); + } +} + +/* + * CallTipsStyle callTipsStyle () const + */ +HB_FUNC( QT_QSCISCINTILLA_CALLTIPSSTYLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::CallTipsStyle ) ( p )->callTipsStyle() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CALLTIPSSTYLE FP=hb_retni( ( QsciScintilla::CallTipsStyle ) ( p )->callTipsStyle() ); p is NULL" ) ); + } +} + +/* + * int callTipsVisible () const + */ +HB_FUNC( QT_QSCISCINTILLA_CALLTIPSVISIBLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->callTipsVisible() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CALLTIPSVISIBLE FP=hb_retni( ( p )->callTipsVisible() ); p is NULL" ) ); + } +} + +/* + * void cancelList () + */ +HB_FUNC( QT_QSCISCINTILLA_CANCELLIST ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->cancelList(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CANCELLIST FP=( p )->cancelList(); p is NULL" ) ); + } +} + +/* + * bool caseSensitive () const + */ +HB_FUNC( QT_QSCISCINTILLA_CASESENSITIVE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->caseSensitive() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CASESENSITIVE FP=hb_retl( ( p )->caseSensitive() ); p is NULL" ) ); + } +} + +/* + * void clearFolds () + */ +HB_FUNC( QT_QSCISCINTILLA_CLEARFOLDS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->clearFolds(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CLEARFOLDS FP=( p )->clearFolds(); p is NULL" ) ); + } +} + +/* + * void clearRegisteredImages () + */ +HB_FUNC( QT_QSCISCINTILLA_CLEARREGISTEREDIMAGES ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->clearRegisteredImages(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CLEARREGISTEREDIMAGES FP=( p )->clearRegisteredImages(); p is NULL" ) ); + } +} + +/* + * QColor color () const + */ +HB_FUNC( QT_QSCISCINTILLA_COLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_COLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color() ), true ) ); p is NULL" ) ); + } +} + +/* + * void convertEols (EolMode mode) + */ +HB_FUNC( QT_QSCISCINTILLA_CONVERTEOLS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->convertEols( ( QsciScintilla::EolMode ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CONVERTEOLS FP=( p )->convertEols( ( QsciScintilla::EolMode ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * QsciDocument document () const + */ +HB_FUNC( QT_QSCISCINTILLA_DOCUMENT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QsciDocument( new QsciDocument( ( p )->document() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_DOCUMENT FP=hb_retptrGC( hbqt_gcAllocate_QsciDocument( new QsciDocument( ( p )->document() ), true ) ); p is NULL" ) ); + } +} + +/* + * void endUndoAction () + */ +HB_FUNC( QT_QSCISCINTILLA_ENDUNDOACTION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->endUndoAction(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ENDUNDOACTION FP=( p )->endUndoAction(); p is NULL" ) ); + } +} + +/* + * QColor edgeColor () const + */ +HB_FUNC( QT_QSCISCINTILLA_EDGECOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->edgeColor() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_EDGECOLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->edgeColor() ), true ) ); p is NULL" ) ); + } +} + +/* + * int edgeColumn () const + */ +HB_FUNC( QT_QSCISCINTILLA_EDGECOLUMN ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->edgeColumn() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_EDGECOLUMN FP=hb_retni( ( p )->edgeColumn() ); p is NULL" ) ); + } +} + +/* + * EdgeMode edgeMode () const + */ +HB_FUNC( QT_QSCISCINTILLA_EDGEMODE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::EdgeMode ) ( p )->edgeMode() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_EDGEMODE FP=hb_retni( ( QsciScintilla::EdgeMode ) ( p )->edgeMode() ); p is NULL" ) ); + } +} + +/* + * void setFont (const QFont &f) + */ +HB_FUNC( QT_QSCISCINTILLA_SETFONT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setFont( *hbqt_par_QFont( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETFONT FP=( p )->setFont( *hbqt_par_QFont( 2 ) ); p is NULL" ) ); + } +} + +/* + * EolMode eolMode () const + */ +HB_FUNC( QT_QSCISCINTILLA_EOLMODE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::EolMode ) ( p )->eolMode() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_EOLMODE FP=hb_retni( ( QsciScintilla::EolMode ) ( p )->eolMode() ); p is NULL" ) ); + } +} + +/* + * bool eolVisibility () const + */ +HB_FUNC( QT_QSCISCINTILLA_EOLVISIBILITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->eolVisibility() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_EOLVISIBILITY FP=hb_retl( ( p )->eolVisibility() ); p is NULL" ) ); + } +} + +/* + * 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) + */ +HB_FUNC( QT_QSCISCINTILLA_FINDFIRST ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->findFirst( QsciScintilla::tr( hb_parc( 2 ) ), hb_parl( 3 ), hb_parl( 4 ), hb_parl( 5 ), hb_parl( 6 ), hb_parl( 7 ), ( HB_ISNUM( 8 ) ? hb_parni( 8 ) : -1 ), ( HB_ISNUM( 9 ) ? hb_parni( 9 ) : -1 ), hb_parl( 10 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_FINDFIRST FP=hb_retl( ( p )->findFirst( QsciScintilla::tr( hb_parc( 2 ) ), hb_parl( 3 ), hb_parl( 4 ), hb_parl( 5 ), hb_parl( 6 ), hb_parl( 7 ), ( HB_ISNUM( 8 ) ? hb_parni( 8 ) : -1 ), ( HB_ISNUM( 9 ) ? hb_parni( 9 ) : -1 ), hb_parl( 10 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual bool findNext () + */ +HB_FUNC( QT_QSCISCINTILLA_FINDNEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->findNext() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_FINDNEXT FP=hb_retl( ( p )->findNext() ); p is NULL" ) ); + } +} + +/* + * int firstVisibleLine () const + */ +HB_FUNC( QT_QSCISCINTILLA_FIRSTVISIBLELINE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->firstVisibleLine() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_FIRSTVISIBLELINE FP=hb_retni( ( p )->firstVisibleLine() ); p is NULL" ) ); + } +} + +/* + * FoldStyle folding () const + */ +HB_FUNC( QT_QSCISCINTILLA_FOLDING ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::FoldStyle ) ( p )->folding() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_FOLDING FP=hb_retni( ( QsciScintilla::FoldStyle ) ( p )->folding() ); p is NULL" ) ); + } +} + +/* + * void getCursorPosition (int *line, int *index) const + */ +HB_FUNC( QT_QSCISCINTILLA_GETCURSORPOSITION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + int iLine = 0; + int iIndex = 0; + + if( p ) + ( p )->getCursorPosition( &iLine, &iIndex ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_GETCURSORPOSITION FP=( p )->getCursorPosition( &iLine, &iIndex ); p is NULL" ) ); + } + + hb_storni( iLine, 2 ); + hb_storni( iIndex, 3 ); +} + +/* + * void getSelection (int *lineFrom, int *indexFrom, int *lineTo, int *indexTo) const + */ +HB_FUNC( QT_QSCISCINTILLA_GETSELECTION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + int iLineFrom = 0; + int iIndexFrom = 0; + int iLineTo = 0; + int iIndexTo = 0; + + if( p ) + ( p )->getSelection( &iLineFrom, &iIndexFrom, &iLineTo, &iIndexTo ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_GETSELECTION FP=( p )->getSelection( &iLineFrom, &iIndexFrom, &iLineTo, &iIndexTo ); p is NULL" ) ); + } + + hb_storni( iLineFrom, 2 ); + hb_storni( iIndexFrom, 3 ); + hb_storni( iLineTo, 4 ); + hb_storni( iIndexTo, 5 ); +} + +/* + * bool hasSelectedText () const + */ +HB_FUNC( QT_QSCISCINTILLA_HASSELECTEDTEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->hasSelectedText() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_HASSELECTEDTEXT FP=hb_retl( ( p )->hasSelectedText() ); p is NULL" ) ); + } +} + +/* + * int indentation (int line) const + */ +HB_FUNC( QT_QSCISCINTILLA_INDENTATION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->indentation( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_INDENTATION FP=hb_retni( ( p )->indentation( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * bool indentationGuides () const + */ +HB_FUNC( QT_QSCISCINTILLA_INDENTATIONGUIDES ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->indentationGuides() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_INDENTATIONGUIDES FP=hb_retl( ( p )->indentationGuides() ); p is NULL" ) ); + } +} + +/* + * bool indentationsUseTabs () const + */ +HB_FUNC( QT_QSCISCINTILLA_INDENTATIONSUSETABS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->indentationsUseTabs() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_INDENTATIONSUSETABS FP=hb_retl( ( p )->indentationsUseTabs() ); p is NULL" ) ); + } +} + +/* + * int indentationWidth () const + */ +HB_FUNC( QT_QSCISCINTILLA_INDENTATIONWIDTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->indentationWidth() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_INDENTATIONWIDTH FP=hb_retni( ( p )->indentationWidth() ); p is NULL" ) ); + } +} + +/* + * bool isCallTipActive () const + */ +HB_FUNC( QT_QSCISCINTILLA_ISCALLTIPACTIVE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isCallTipActive() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISCALLTIPACTIVE FP=hb_retl( ( p )->isCallTipActive() ); p is NULL" ) ); + } +} + +/* + * bool isListActive () const + */ +HB_FUNC( QT_QSCISCINTILLA_ISLISTACTIVE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isListActive() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISLISTACTIVE FP=hb_retl( ( p )->isListActive() ); p is NULL" ) ); + } +} + +/* + * bool isModified () const + */ +HB_FUNC( QT_QSCISCINTILLA_ISMODIFIED ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isModified() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISMODIFIED FP=hb_retl( ( p )->isModified() ); p is NULL" ) ); + } +} + +/* + * bool isReadOnly () const + */ +HB_FUNC( QT_QSCISCINTILLA_ISREADONLY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isReadOnly() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISREADONLY FP=hb_retl( ( p )->isReadOnly() ); p is NULL" ) ); + } +} + +/* + * bool isRedoAvailable () const + */ +HB_FUNC( QT_QSCISCINTILLA_ISREDOAVAILABLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isRedoAvailable() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISREDOAVAILABLE FP=hb_retl( ( p )->isRedoAvailable() ); p is NULL" ) ); + } +} + +/* + * bool isUndoAvailable () const + */ +HB_FUNC( QT_QSCISCINTILLA_ISUNDOAVAILABLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isUndoAvailable() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISUNDOAVAILABLE FP=hb_retl( ( p )->isUndoAvailable() ); p is NULL" ) ); + } +} + +/* + * bool isUtf8 () const + */ +HB_FUNC( QT_QSCISCINTILLA_ISUTF8 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isUtf8() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISUTF8 FP=hb_retl( ( p )->isUtf8() ); p is NULL" ) ); + } +} + +/* + * bool isWordCharacter (char ch) const + */ +HB_FUNC( QT_QSCISCINTILLA_ISWORDCHARACTER ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->isWordCharacter( ( char ) hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ISWORDCHARACTER FP=hb_retl( ( p )->isWordCharacter( ( char ) hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * int lineAt (const QPoint &pos) const + */ +HB_FUNC( QT_QSCISCINTILLA_LINEAT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->lineAt( *hbqt_par_QPoint( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_LINEAT FP=hb_retni( ( p )->lineAt( *hbqt_par_QPoint( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * void lineIndexFromPosition (int position, int *line, int *index) const + */ +HB_FUNC( QT_QSCISCINTILLA_LINEINDEXFROMPOSITION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + int iLine = 0; + int iIndex = 0; + + if( p ) + ( p )->lineIndexFromPosition( hb_parni( 2 ), &iLine, &iIndex ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_LINEINDEXFROMPOSITION FP=( p )->lineIndexFromPosition( hb_parni( 2 ), &iLine, &iIndex ); p is NULL" ) ); + } + + hb_storni( iLine, 3 ); + hb_storni( iIndex, 4 ); +} + +/* + * int lineLength (int line) const + */ +HB_FUNC( QT_QSCISCINTILLA_LINELENGTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->lineLength( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_LINELENGTH FP=hb_retni( ( p )->lineLength( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * int lines () const + */ +HB_FUNC( QT_QSCISCINTILLA_LINES ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->lines() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_LINES FP=hb_retni( ( p )->lines() ); p is NULL" ) ); + } +} + +/* + * int length () const + */ +HB_FUNC( QT_QSCISCINTILLA_LENGTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->length() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_LENGTH FP=hb_retni( ( p )->length() ); p is NULL" ) ); + } +} + +/* + * QsciLexer * lexer () const + */ +HB_FUNC( QT_QSCISCINTILLA_LEXER ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QsciLexer( ( p )->lexer(), false ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_LEXER FP=hb_retptrGC( hbqt_gcAllocate_QsciLexer( ( p )->lexer(), false ) ); p is NULL" ) ); + } +} + +/* + * bool marginLineNumbers (int margin) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARGINLINENUMBERS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->marginLineNumbers( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARGINLINENUMBERS FP=hb_retl( ( p )->marginLineNumbers( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * int marginMarkerMask (int margin) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARGINMARKERMASK ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->marginMarkerMask( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARGINMARKERMASK FP=hb_retni( ( p )->marginMarkerMask( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * bool marginSensitivity (int margin) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARGINSENSITIVITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->marginSensitivity( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARGINSENSITIVITY FP=hb_retl( ( p )->marginSensitivity( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * MarginType marginType (int margin) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARGINTYPE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::MarginType ) ( p )->marginType( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARGINTYPE FP=hb_retni( ( QsciScintilla::MarginType ) ( p )->marginType( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * int marginWidth (int margin) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARGINWIDTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->marginWidth( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARGINWIDTH FP=hb_retni( ( p )->marginWidth( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * int markerDefine (MarkerSymbol sym, int mnr=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERDEFINE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markerDefine( ( QsciScintilla::MarkerSymbol ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERDEFINE FP=hb_retni( ( p )->markerDefine( ( QsciScintilla::MarkerSymbol ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) ); p is NULL" ) ); + } +} + +/* + * int markerDefine (char ch, int mnr=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERDEFINE_1 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markerDefine( ( char ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERDEFINE_1 FP=hb_retni( ( p )->markerDefine( ( char ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) ); p is NULL" ) ); + } +} + +/* + * int markerDefine (const QPixmap &pm, int mnr=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERDEFINE_2 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markerDefine( *hbqt_par_QPixmap( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERDEFINE_2 FP=hb_retni( ( p )->markerDefine( *hbqt_par_QPixmap( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ) ); p is NULL" ) ); + } +} + +/* + * int markerAdd (int linenr, int mnr) + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERADD ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markerAdd( hb_parni( 2 ), hb_parni( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERADD FP=hb_retni( ( p )->markerAdd( hb_parni( 2 ), hb_parni( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * unsigned markersAtLine (int linenr) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERSATLINE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markersAtLine( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERSATLINE FP=hb_retni( ( p )->markersAtLine( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * void markerDelete (int linenr, int mnr=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERDELETE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->markerDelete( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERDELETE FP=( p )->markerDelete( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * void markerDeleteAll (int mnr=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERDELETEALL ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->markerDeleteAll( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERDELETEALL FP=( p )->markerDeleteAll( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * void markerDeleteHandle (int mhandle) + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERDELETEHANDLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->markerDeleteHandle( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERDELETEHANDLE FP=( p )->markerDeleteHandle( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * int markerLine (int mhandle) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERLINE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markerLine( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERLINE FP=hb_retni( ( p )->markerLine( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * int markerFindNext (int linenr, unsigned mask) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERFINDNEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markerFindNext( hb_parni( 2 ), hb_parni( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERFINDNEXT FP=hb_retni( ( p )->markerFindNext( hb_parni( 2 ), hb_parni( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * int markerFindPrevious (int linenr, unsigned mask) const + */ +HB_FUNC( QT_QSCISCINTILLA_MARKERFINDPREVIOUS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->markerFindPrevious( hb_parni( 2 ), hb_parni( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MARKERFINDPREVIOUS FP=hb_retni( ( p )->markerFindPrevious( hb_parni( 2 ), hb_parni( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * QColor paper () const + */ +HB_FUNC( QT_QSCISCINTILLA_PAPER ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_PAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper() ), true ) ); p is NULL" ) ); + } +} + +/* + * int positionFromLineIndex (int line, int index) const + */ +HB_FUNC( QT_QSCISCINTILLA_POSITIONFROMLINEINDEX ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->positionFromLineIndex( hb_parni( 2 ), hb_parni( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_POSITIONFROMLINEINDEX FP=hb_retni( ( p )->positionFromLineIndex( hb_parni( 2 ), hb_parni( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * bool read (QIODevice *io) + */ +HB_FUNC( QT_QSCISCINTILLA_READ ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->read( hbqt_par_QIODevice( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_READ FP=hb_retl( ( p )->read( hbqt_par_QIODevice( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void recolor (int start=0, int end=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_RECOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->recolor( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_RECOLOR FP=( p )->recolor( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * void registerImage (int id, const QPixmap &pm) + */ +HB_FUNC( QT_QSCISCINTILLA_REGISTERIMAGE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->registerImage( hb_parni( 2 ), *hbqt_par_QPixmap( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_REGISTERIMAGE FP=( p )->registerImage( hb_parni( 2 ), *hbqt_par_QPixmap( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void replace (const QString &replaceStr) + */ +HB_FUNC( QT_QSCISCINTILLA_REPLACE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->replace( QsciScintilla::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_REPLACE FP=( p )->replace( QsciScintilla::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * void resetFoldMarginColors () + */ +HB_FUNC( QT_QSCISCINTILLA_RESETFOLDMARGINCOLORS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->resetFoldMarginColors(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_RESETFOLDMARGINCOLORS FP=( p )->resetFoldMarginColors(); p is NULL" ) ); + } +} + +/* + * void setFoldMarginColors (const QColor &fore, const QColor &back) + */ +HB_FUNC( QT_QSCISCINTILLA_SETFOLDMARGINCOLORS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setFoldMarginColors( *hbqt_par_QColor( 2 ), *hbqt_par_QColor( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETFOLDMARGINCOLORS FP=( p )->setFoldMarginColors( *hbqt_par_QColor( 2 ), *hbqt_par_QColor( 3 ) ); p is NULL" ) ); + } +} + +/* + * void setAnnotationDisplay (AnnotationDisplay display) + */ +HB_FUNC( QT_QSCISCINTILLA_SETANNOTATIONDISPLAY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAnnotationDisplay( ( QsciScintilla::AnnotationDisplay ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETANNOTATIONDISPLAY FP=( p )->setAnnotationDisplay( ( QsciScintilla::AnnotationDisplay ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setAutoCompletionFillupsEnabled (bool enabled) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONFILLUPSENABLED ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionFillupsEnabled( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONFILLUPSENABLED FP=( p )->setAutoCompletionFillupsEnabled( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setAutoCompletionFillups (const char *fillups) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONFILLUPS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionFillups( hbqt_par_char( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONFILLUPS FP=( p )->setAutoCompletionFillups( hbqt_par_char( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setAutoCompletionWordSeparators (const QStringList &separators) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONWORDSEPARATORS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionWordSeparators( *hbqt_par_QStringList( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONWORDSEPARATORS FP=( p )->setAutoCompletionWordSeparators( *hbqt_par_QStringList( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setCallTipsBackgroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCALLTIPSBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCallTipsBackgroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCALLTIPSBACKGROUNDCOLOR FP=( p )->setCallTipsBackgroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setCallTipsForegroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCALLTIPSFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCallTipsForegroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCALLTIPSFOREGROUNDCOLOR FP=( p )->setCallTipsForegroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setCallTipsHighlightColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCALLTIPSHIGHLIGHTCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCallTipsHighlightColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCALLTIPSHIGHLIGHTCOLOR FP=( p )->setCallTipsHighlightColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setCallTipsStyle (CallTipsStyle style) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCALLTIPSSTYLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCallTipsStyle( ( QsciScintilla::CallTipsStyle ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCALLTIPSSTYLE FP=( p )->setCallTipsStyle( ( QsciScintilla::CallTipsStyle ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setCallTipsVisible (int nr) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCALLTIPSVISIBLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCallTipsVisible( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCALLTIPSVISIBLE FP=( p )->setCallTipsVisible( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setDocument (const QsciDocument &document) + */ +HB_FUNC( QT_QSCISCINTILLA_SETDOCUMENT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setDocument( *hbqt_par_QsciDocument( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETDOCUMENT FP=( p )->setDocument( *hbqt_par_QsciDocument( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setEdgeColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETEDGECOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setEdgeColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETEDGECOLOR FP=( p )->setEdgeColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setEdgeColumn (int colnr) + */ +HB_FUNC( QT_QSCISCINTILLA_SETEDGECOLUMN ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setEdgeColumn( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETEDGECOLUMN FP=( p )->setEdgeColumn( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setEdgeMode (EdgeMode mode) + */ +HB_FUNC( QT_QSCISCINTILLA_SETEDGEMODE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setEdgeMode( ( QsciScintilla::EdgeMode ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETEDGEMODE FP=( p )->setEdgeMode( ( QsciScintilla::EdgeMode ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setMarginText (int line, const QString &text, int style) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINTEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginText( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), hb_parni( 4 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINTEXT FP=( p )->setMarginText( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), hb_parni( 4 ) ); p is NULL" ) ); + } +} + +/* + * void setMarginText (int line, const QString &text, const QsciStyle &style) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINTEXT_1 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginText( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), *hbqt_par_QsciStyle( 4 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINTEXT_1 FP=( p )->setMarginText( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ), *hbqt_par_QsciStyle( 4 ) ); p is NULL" ) ); + } +} + +/* + * void setMarginText (int line, const QsciStyledText &text) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINTEXT_2 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginText( hb_parni( 2 ), *hbqt_par_QsciStyledText( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINTEXT_2 FP=( p )->setMarginText( hb_parni( 2 ), *hbqt_par_QsciStyledText( 3 ) ); p is NULL" ) ); + } +} + +/* + * void setMarginType (int margin, MarginType type) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINTYPE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginType( hb_parni( 2 ), ( QsciScintilla::MarginType ) hb_parni( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINTYPE FP=( p )->setMarginType( hb_parni( 2 ), ( QsciScintilla::MarginType ) hb_parni( 3 ) ); p is NULL" ) ); + } +} + +/* + * void clearMarginText (int line=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_CLEARMARGINTEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->clearMarginText( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CLEARMARGINTEXT FP=( p )->clearMarginText( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * void setMarkerBackgroundColor (const QColor &col, int mnr=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARKERBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarkerBackgroundColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARKERBACKGROUNDCOLOR FP=( p )->setMarkerBackgroundColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * void setMarkerForegroundColor (const QColor &col, int mnr=-1) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARKERFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarkerForegroundColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARKERFOREGROUNDCOLOR FP=( p )->setMarkerForegroundColor( *hbqt_par_QColor( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1 ) ); p is NULL" ) ); + } +} + +/* + * void setMatchedBraceBackgroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMATCHEDBRACEBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMatchedBraceBackgroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMATCHEDBRACEBACKGROUNDCOLOR FP=( p )->setMatchedBraceBackgroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setMatchedBraceForegroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMATCHEDBRACEFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMatchedBraceForegroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMATCHEDBRACEFOREGROUNDCOLOR FP=( p )->setMatchedBraceForegroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setUnmatchedBraceBackgroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETUNMATCHEDBRACEBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setUnmatchedBraceBackgroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETUNMATCHEDBRACEBACKGROUNDCOLOR FP=( p )->setUnmatchedBraceBackgroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setUnmatchedBraceForegroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETUNMATCHEDBRACEFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setUnmatchedBraceForegroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETUNMATCHEDBRACEFOREGROUNDCOLOR FP=( p )->setUnmatchedBraceForegroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * void setWrapVisualFlags (WrapVisualFlag eflag, WrapVisualFlag sflag=WrapFlagNone, int sindent=0) + */ +HB_FUNC( QT_QSCISCINTILLA_SETWRAPVISUALFLAGS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setWrapVisualFlags( ( QsciScintilla::WrapVisualFlag ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( QsciScintilla::WrapVisualFlag ) hb_parni( 3 ) : ( QsciScintilla::WrapVisualFlag ) QsciScintilla::WrapFlagNone ), hb_parni( 4 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETWRAPVISUALFLAGS FP=( p )->setWrapVisualFlags( ( QsciScintilla::WrapVisualFlag ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( QsciScintilla::WrapVisualFlag ) hb_parni( 3 ) : ( QsciScintilla::WrapVisualFlag ) QsciScintilla::WrapFlagNone ), hb_parni( 4 ) ); p is NULL" ) ); + } +} + +/* + * QString selectedText () const + */ +HB_FUNC( QT_QSCISCINTILLA_SELECTEDTEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retc( ( p )->selectedText().toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SELECTEDTEXT FP=hb_retc( ( p )->selectedText().toAscii().data() ); p is NULL" ) ); + } +} + +/* + * bool selectionToEol () const + */ +HB_FUNC( QT_QSCISCINTILLA_SELECTIONTOEOL ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->selectionToEol() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SELECTIONTOEOL FP=hb_retl( ( p )->selectionToEol() ); p is NULL" ) ); + } +} + +/* + * void setSelectionToEol (bool filled) + */ +HB_FUNC( QT_QSCISCINTILLA_SETSELECTIONTOEOL ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setSelectionToEol( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETSELECTIONTOEOL FP=( p )->setSelectionToEol( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * void showUserList (int id, const QStringList &list) + */ +HB_FUNC( QT_QSCISCINTILLA_SHOWUSERLIST ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->showUserList( hb_parni( 2 ), *hbqt_par_QStringList( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SHOWUSERLIST FP=( p )->showUserList( hb_parni( 2 ), *hbqt_par_QStringList( 3 ) ); p is NULL" ) ); + } +} + +/* + * QsciCommandSet * standardCommands () const + */ +HB_FUNC( QT_QSCISCINTILLA_STANDARDCOMMANDS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QsciCommandSet( ( p )->standardCommands(), false ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_STANDARDCOMMANDS FP=hb_retptrGC( hbqt_gcAllocate_QsciCommandSet( ( p )->standardCommands(), false ) ); p is NULL" ) ); + } +} + +/* + * bool tabIndents () const + */ +HB_FUNC( QT_QSCISCINTILLA_TABINDENTS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->tabIndents() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_TABINDENTS FP=hb_retl( ( p )->tabIndents() ); p is NULL" ) ); + } +} + +/* + * int tabWidth () const + */ +HB_FUNC( QT_QSCISCINTILLA_TABWIDTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->tabWidth() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_TABWIDTH FP=hb_retni( ( p )->tabWidth() ); p is NULL" ) ); + } +} + +/* + * QString text () const + */ +HB_FUNC( QT_QSCISCINTILLA_TEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retc( ( p )->text().toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_TEXT FP=hb_retc( ( p )->text().toAscii().data() ); p is NULL" ) ); + } +} + +/* + * QString text (int line) const + */ +HB_FUNC( QT_QSCISCINTILLA_TEXT_1 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retc( ( p )->text( hb_parni( 2 ) ).toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_TEXT_1 FP=hb_retc( ( p )->text( hb_parni( 2 ) ).toAscii().data() ); p is NULL" ) ); + } +} + +/* + * int textHeight (int linenr) const + */ +HB_FUNC( QT_QSCISCINTILLA_TEXTHEIGHT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( p )->textHeight( hb_parni( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_TEXTHEIGHT FP=hb_retni( ( p )->textHeight( hb_parni( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * WhitespaceVisibility whitespaceVisibility () const + */ +HB_FUNC( QT_QSCISCINTILLA_WHITESPACEVISIBILITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::WhitespaceVisibility ) ( p )->whitespaceVisibility() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_WHITESPACEVISIBILITY FP=hb_retni( ( QsciScintilla::WhitespaceVisibility ) ( p )->whitespaceVisibility() ); p is NULL" ) ); + } +} + +/* + * QString wordAtPoint (const QPoint &point) const + */ +HB_FUNC( QT_QSCISCINTILLA_WORDATPOINT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retc( ( p )->wordAtPoint( *hbqt_par_QPoint( 2 ) ).toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_WORDATPOINT FP=hb_retc( ( p )->wordAtPoint( *hbqt_par_QPoint( 2 ) ).toAscii().data() ); p is NULL" ) ); + } +} + +/* + * const char * wordCharacters () const + */ +HB_FUNC( QT_QSCISCINTILLA_WORDCHARACTERS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retc( ( p )->wordCharacters() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_WORDCHARACTERS FP=hb_retc( ( p )->wordCharacters() ); p is NULL" ) ); + } +} + +/* + * WrapMode wrapMode () const + */ +HB_FUNC( QT_QSCISCINTILLA_WRAPMODE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retni( ( QsciScintilla::WrapMode ) ( p )->wrapMode() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_WRAPMODE FP=hb_retni( ( QsciScintilla::WrapMode ) ( p )->wrapMode() ); p is NULL" ) ); + } +} + +/* + * bool write (QIODevice *io) const + */ +HB_FUNC( QT_QSCISCINTILLA_WRITE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + hb_retl( ( p )->write( hbqt_par_QIODevice( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_WRITE FP=hb_retl( ( p )->write( hbqt_par_QIODevice( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void append (const QString &text) + */ +HB_FUNC( QT_QSCISCINTILLA_APPEND ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->append( QsciScintilla::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_APPEND FP=( p )->append( QsciScintilla::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void autoCompleteFromAll () + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETEFROMALL ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->autoCompleteFromAll(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETEFROMALL FP=( p )->autoCompleteFromAll(); p is NULL" ) ); + } +} + +/* + * virtual void autoCompleteFromAPIs () + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETEFROMAPIS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->autoCompleteFromAPIs(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETEFROMAPIS FP=( p )->autoCompleteFromAPIs(); p is NULL" ) ); + } +} + +/* + * virtual void autoCompleteFromDocument () + */ +HB_FUNC( QT_QSCISCINTILLA_AUTOCOMPLETEFROMDOCUMENT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->autoCompleteFromDocument(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_AUTOCOMPLETEFROMDOCUMENT FP=( p )->autoCompleteFromDocument(); p is NULL" ) ); + } +} + +/* + * virtual void callTip () + */ +HB_FUNC( QT_QSCISCINTILLA_CALLTIP ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->callTip(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CALLTIP FP=( p )->callTip(); p is NULL" ) ); + } +} + +/* + * virtual void clear () + */ +HB_FUNC( QT_QSCISCINTILLA_CLEAR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->clear(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CLEAR FP=( p )->clear(); p is NULL" ) ); + } +} + +/* + * virtual void copy () + */ +HB_FUNC( QT_QSCISCINTILLA_COPY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->copy(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_COPY FP=( p )->copy(); p is NULL" ) ); + } +} + +/* + * virtual void cut () + */ +HB_FUNC( QT_QSCISCINTILLA_CUT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->cut(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_CUT FP=( p )->cut(); p is NULL" ) ); + } +} + +/* + * virtual void ensureCursorVisible () + */ +HB_FUNC( QT_QSCISCINTILLA_ENSURECURSORVISIBLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->ensureCursorVisible(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ENSURECURSORVISIBLE FP=( p )->ensureCursorVisible(); p is NULL" ) ); + } +} + +/* + * virtual void ensureLineVisible (int line) + */ +HB_FUNC( QT_QSCISCINTILLA_ENSURELINEVISIBLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->ensureLineVisible( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ENSURELINEVISIBLE FP=( p )->ensureLineVisible( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void foldAll (bool children=false) + */ +HB_FUNC( QT_QSCISCINTILLA_FOLDALL ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->foldAll( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_FOLDALL FP=( p )->foldAll( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void foldLine (int line) + */ +HB_FUNC( QT_QSCISCINTILLA_FOLDLINE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->foldLine( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_FOLDLINE FP=( p )->foldLine( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void indent (int line) + */ +HB_FUNC( QT_QSCISCINTILLA_INDENT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->indent( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_INDENT FP=( p )->indent( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void insert (const QString &text) + */ +HB_FUNC( QT_QSCISCINTILLA_INSERT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->insert( QsciScintilla::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_INSERT FP=( p )->insert( QsciScintilla::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void insertAt (const QString &text, int line, int index) + */ +HB_FUNC( QT_QSCISCINTILLA_INSERTAT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->insertAt( QsciScintilla::tr( hb_parc( 2 ) ), hb_parni( 3 ), hb_parni( 4 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_INSERTAT FP=( p )->insertAt( QsciScintilla::tr( hb_parc( 2 ) ), hb_parni( 3 ), hb_parni( 4 ) ); p is NULL" ) ); + } +} + +/* + * virtual void moveToMatchingBrace () + */ +HB_FUNC( QT_QSCISCINTILLA_MOVETOMATCHINGBRACE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->moveToMatchingBrace(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_MOVETOMATCHINGBRACE FP=( p )->moveToMatchingBrace(); p is NULL" ) ); + } +} + +/* + * virtual void paste () + */ +HB_FUNC( QT_QSCISCINTILLA_PASTE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->paste(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_PASTE FP=( p )->paste(); p is NULL" ) ); + } +} + +/* + * virtual void redo () + */ +HB_FUNC( QT_QSCISCINTILLA_REDO ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->redo(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_REDO FP=( p )->redo(); p is NULL" ) ); + } +} + +/* + * virtual void removeSelectedText () + */ +HB_FUNC( QT_QSCISCINTILLA_REMOVESELECTEDTEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->removeSelectedText(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_REMOVESELECTEDTEXT FP=( p )->removeSelectedText(); p is NULL" ) ); + } +} + +/* + * virtual void resetSelectionBackgroundColor () + */ +HB_FUNC( QT_QSCISCINTILLA_RESETSELECTIONBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->resetSelectionBackgroundColor(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_RESETSELECTIONBACKGROUNDCOLOR FP=( p )->resetSelectionBackgroundColor(); p is NULL" ) ); + } +} + +/* + * virtual void resetSelectionForegroundColor () + */ +HB_FUNC( QT_QSCISCINTILLA_RESETSELECTIONFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->resetSelectionForegroundColor(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_RESETSELECTIONFOREGROUNDCOLOR FP=( p )->resetSelectionForegroundColor(); p is NULL" ) ); + } +} + +/* + * virtual void selectAll (bool select=true) + */ +HB_FUNC( QT_QSCISCINTILLA_SELECTALL ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->selectAll( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SELECTALL FP=( p )->selectAll( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void selectToMatchingBrace () + */ +HB_FUNC( QT_QSCISCINTILLA_SELECTTOMATCHINGBRACE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->selectToMatchingBrace(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SELECTTOMATCHINGBRACE FP=( p )->selectToMatchingBrace(); p is NULL" ) ); + } +} + +/* + * virtual void setAutoCompletionCaseSensitivity (bool cs) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONCASESENSITIVITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionCaseSensitivity( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONCASESENSITIVITY FP=( p )->setAutoCompletionCaseSensitivity( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setAutoCompletionReplaceWord (bool replace) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONREPLACEWORD ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionReplaceWord( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONREPLACEWORD FP=( p )->setAutoCompletionReplaceWord( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setAutoCompletionShowSingle (bool single) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONSHOWSINGLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionShowSingle( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONSHOWSINGLE FP=( p )->setAutoCompletionShowSingle( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setAutoCompletionSource (AutoCompletionSource source) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONSOURCE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionSource( ( QsciScintilla::AutoCompletionSource ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONSOURCE FP=( p )->setAutoCompletionSource( ( QsciScintilla::AutoCompletionSource ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setAutoCompletionThreshold (int thresh) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOCOMPLETIONTHRESHOLD ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoCompletionThreshold( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOCOMPLETIONTHRESHOLD FP=( p )->setAutoCompletionThreshold( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setAutoIndent (bool autoindent) + */ +HB_FUNC( QT_QSCISCINTILLA_SETAUTOINDENT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setAutoIndent( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETAUTOINDENT FP=( p )->setAutoIndent( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setBraceMatching (BraceMatch bm) + */ +HB_FUNC( QT_QSCISCINTILLA_SETBRACEMATCHING ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setBraceMatching( ( QsciScintilla::BraceMatch ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETBRACEMATCHING FP=( p )->setBraceMatching( ( QsciScintilla::BraceMatch ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setBackspaceUnindents (bool unindent) + */ +HB_FUNC( QT_QSCISCINTILLA_SETBACKSPACEUNINDENTS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setBackspaceUnindents( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETBACKSPACEUNINDENTS FP=( p )->setBackspaceUnindents( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setCaretForegroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCARETFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCaretForegroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCARETFOREGROUNDCOLOR FP=( p )->setCaretForegroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setCaretLineBackgroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCARETLINEBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCaretLineBackgroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCARETLINEBACKGROUNDCOLOR FP=( p )->setCaretLineBackgroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setCaretLineVisible (bool enable) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCARETLINEVISIBLE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCaretLineVisible( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCARETLINEVISIBLE FP=( p )->setCaretLineVisible( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setCaretWidth (int width) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCARETWIDTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCaretWidth( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCARETWIDTH FP=( p )->setCaretWidth( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setColor (const QColor &c) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCOLOR FP=( p )->setColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setCursorPosition (int line, int index) + */ +HB_FUNC( QT_QSCISCINTILLA_SETCURSORPOSITION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setCursorPosition( hb_parni( 2 ), hb_parni( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETCURSORPOSITION FP=( p )->setCursorPosition( hb_parni( 2 ), hb_parni( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setEolMode (EolMode mode) + */ +HB_FUNC( QT_QSCISCINTILLA_SETEOLMODE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setEolMode( ( QsciScintilla::EolMode ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETEOLMODE FP=( p )->setEolMode( ( QsciScintilla::EolMode ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setEolVisibility (bool visible) + */ +HB_FUNC( QT_QSCISCINTILLA_SETEOLVISIBILITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setEolVisibility( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETEOLVISIBILITY FP=( p )->setEolVisibility( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setFolding (FoldStyle fold, int margin=2) + */ +HB_FUNC( QT_QSCISCINTILLA_SETFOLDING ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setFolding( ( QsciScintilla::FoldStyle ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETFOLDING FP=( p )->setFolding( ( QsciScintilla::FoldStyle ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setIndentation (int line, int indentation) + */ +HB_FUNC( QT_QSCISCINTILLA_SETINDENTATION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setIndentation( hb_parni( 2 ), hb_parni( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETINDENTATION FP=( p )->setIndentation( hb_parni( 2 ), hb_parni( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setIndentationGuides (bool enable) + */ +HB_FUNC( QT_QSCISCINTILLA_SETINDENTATIONGUIDES ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setIndentationGuides( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETINDENTATIONGUIDES FP=( p )->setIndentationGuides( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setIndentationGuidesBackgroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETINDENTATIONGUIDESBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setIndentationGuidesBackgroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETINDENTATIONGUIDESBACKGROUNDCOLOR FP=( p )->setIndentationGuidesBackgroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setIndentationGuidesForegroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETINDENTATIONGUIDESFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setIndentationGuidesForegroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETINDENTATIONGUIDESFOREGROUNDCOLOR FP=( p )->setIndentationGuidesForegroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setIndentationsUseTabs (bool tabs) + */ +HB_FUNC( QT_QSCISCINTILLA_SETINDENTATIONSUSETABS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setIndentationsUseTabs( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETINDENTATIONSUSETABS FP=( p )->setIndentationsUseTabs( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setIndentationWidth (int width) + */ +HB_FUNC( QT_QSCISCINTILLA_SETINDENTATIONWIDTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setIndentationWidth( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETINDENTATIONWIDTH FP=( p )->setIndentationWidth( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setLexer (QsciLexer *lexer=0) + */ +HB_FUNC( QT_QSCISCINTILLA_SETLEXER ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setLexer( hbqt_par_QsciLexer( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETLEXER FP=( p )->setLexer( hbqt_par_QsciLexer( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginsBackgroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINSBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginsBackgroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINSBACKGROUNDCOLOR FP=( p )->setMarginsBackgroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginsFont (const QFont &f) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINSFONT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginsFont( *hbqt_par_QFont( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINSFONT FP=( p )->setMarginsFont( *hbqt_par_QFont( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginsForegroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINSFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginsForegroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINSFOREGROUNDCOLOR FP=( p )->setMarginsForegroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginLineNumbers (int margin, bool lnrs) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINLINENUMBERS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginLineNumbers( hb_parni( 2 ), hb_parl( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINLINENUMBERS FP=( p )->setMarginLineNumbers( hb_parni( 2 ), hb_parl( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginMarkerMask (int margin, int mask) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINMARKERMASK ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginMarkerMask( hb_parni( 2 ), hb_parni( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINMARKERMASK FP=( p )->setMarginMarkerMask( hb_parni( 2 ), hb_parni( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginSensitivity (int margin, bool sens) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINSENSITIVITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginSensitivity( hb_parni( 2 ), hb_parl( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINSENSITIVITY FP=( p )->setMarginSensitivity( hb_parni( 2 ), hb_parl( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginWidth (int margin, int width) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINWIDTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginWidth( hb_parni( 2 ), hb_parni( 3 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINWIDTH FP=( p )->setMarginWidth( hb_parni( 2 ), hb_parni( 3 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setMarginWidth (int margin, const QString &s) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMARGINWIDTH_1 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setMarginWidth( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMARGINWIDTH_1 FP=( p )->setMarginWidth( hb_parni( 2 ), QsciScintilla::tr( hb_parc( 3 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void setModified (bool m) + */ +HB_FUNC( QT_QSCISCINTILLA_SETMODIFIED ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setModified( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETMODIFIED FP=( p )->setModified( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setPaper (const QColor &c) + */ +HB_FUNC( QT_QSCISCINTILLA_SETPAPER ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setPaper( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETPAPER FP=( p )->setPaper( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setReadOnly (bool ro) + */ +HB_FUNC( QT_QSCISCINTILLA_SETREADONLY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setReadOnly( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETREADONLY FP=( p )->setReadOnly( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setSelection (int lineFrom, int indexFrom, int lineTo, int indexTo) + */ +HB_FUNC( QT_QSCISCINTILLA_SETSELECTION ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setSelection( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETSELECTION FP=( p )->setSelection( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setSelectionBackgroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETSELECTIONBACKGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setSelectionBackgroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETSELECTIONBACKGROUNDCOLOR FP=( p )->setSelectionBackgroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setSelectionForegroundColor (const QColor &col) + */ +HB_FUNC( QT_QSCISCINTILLA_SETSELECTIONFOREGROUNDCOLOR ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setSelectionForegroundColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETSELECTIONFOREGROUNDCOLOR FP=( p )->setSelectionForegroundColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setTabIndents (bool indent) + */ +HB_FUNC( QT_QSCISCINTILLA_SETTABINDENTS ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setTabIndents( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETTABINDENTS FP=( p )->setTabIndents( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setTabWidth (int width) + */ +HB_FUNC( QT_QSCISCINTILLA_SETTABWIDTH ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setTabWidth( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETTABWIDTH FP=( p )->setTabWidth( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setText (const QString &text) + */ +HB_FUNC( QT_QSCISCINTILLA_SETTEXT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setText( QsciScintilla::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETTEXT FP=( p )->setText( QsciScintilla::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * virtual void setUtf8 (bool cp) + */ +HB_FUNC( QT_QSCISCINTILLA_SETUTF8 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setUtf8( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETUTF8 FP=( p )->setUtf8( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setWhitespaceVisibility (WhitespaceVisibility mode) + */ +HB_FUNC( QT_QSCISCINTILLA_SETWHITESPACEVISIBILITY ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setWhitespaceVisibility( ( QsciScintilla::WhitespaceVisibility ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETWHITESPACEVISIBILITY FP=( p )->setWhitespaceVisibility( ( QsciScintilla::WhitespaceVisibility ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void setWrapMode (WrapMode mode) + */ +HB_FUNC( QT_QSCISCINTILLA_SETWRAPMODE ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->setWrapMode( ( QsciScintilla::WrapMode ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_SETWRAPMODE FP=( p )->setWrapMode( ( QsciScintilla::WrapMode ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void undo () + */ +HB_FUNC( QT_QSCISCINTILLA_UNDO ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->undo(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_UNDO FP=( p )->undo(); p is NULL" ) ); + } +} + +/* + * virtual void unindent (int line) + */ +HB_FUNC( QT_QSCISCINTILLA_UNINDENT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->unindent( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_UNINDENT FP=( p )->unindent( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void zoomIn (int range) + */ +HB_FUNC( QT_QSCISCINTILLA_ZOOMIN ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->zoomIn( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ZOOMIN FP=( p )->zoomIn( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void zoomIn () + */ +HB_FUNC( QT_QSCISCINTILLA_ZOOMIN_1 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->zoomIn(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ZOOMIN_1 FP=( p )->zoomIn(); p is NULL" ) ); + } +} + +/* + * virtual void zoomOut (int range) + */ +HB_FUNC( QT_QSCISCINTILLA_ZOOMOUT ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->zoomOut( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ZOOMOUT FP=( p )->zoomOut( hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * virtual void zoomOut () + */ +HB_FUNC( QT_QSCISCINTILLA_ZOOMOUT_1 ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->zoomOut(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ZOOMOUT_1 FP=( p )->zoomOut(); p is NULL" ) ); + } +} + +/* + * virtual void zoomTo (int size) + */ +HB_FUNC( QT_QSCISCINTILLA_ZOOMTO ) +{ + QsciScintilla * p = hbqt_par_QsciScintilla( 1 ); + if( p ) + ( p )->zoomTo( hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISCINTILLA_ZOOMTO FP=( p )->zoomTo( hb_parni( 2 ) ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciStyle.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciStyle.cpp new file mode 100644 index 0000000000..a608382ce7 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciStyle.cpp @@ -0,0 +1,450 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +/* + * enum TextCase { OriginalCase = 0, UpperCase = 1, LowerCase = 2 } + */ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciStyle (int style=-1) + * QsciStyle (int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eol_fill=false) + * + */ + +typedef struct +{ + QPointer< QsciStyle > ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciStyle; + +QT_G_FUNC( hbqt_gcRelease_QsciStyle ) +{ + QsciStyle * ph = NULL ; + QGC_POINTER_QsciStyle * p = ( QGC_POINTER_QsciStyle * ) Cargo; + + if( p && p->bNew && p->ph ) + { + ph = p->ph; + if( ph ) + { + const QMetaObject * m = ( ph )->metaObject(); + if( ( QString ) m->className() != ( QString ) "QObject" ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciStyle /.\\ ", (void*) ph, (void*) p->ph ) ); + delete ( p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p %p YES_rel_QsciStyle \\./ ", (void*) ph, (void*) p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NO__rel_QsciStyle ", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciStyle : Object already deleted!", ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciStyle : Object not created with new=true", ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciStyle( void * pObj, bool bNew ) +{ + QGC_POINTER_QsciStyle * p = ( QGC_POINTER_QsciStyle * ) hb_gcAllocate( sizeof( QGC_POINTER_QsciStyle ), hbqt_gcFuncs() ); + + new( & p->ph ) QPointer< QsciStyle >( ( QsciStyle * ) pObj ); + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciStyle; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciStyle under p->pq", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciStyle", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCISTYLE ) +{ + QsciStyle * pObj = NULL; + + if( HB_ISNUMERIC( 1 ) ) + { + pObj = new QsciStyle( hb_parni( 1 ) ) ; + } + else if( hb_pcount() >= 5 ) + { + pObj = new QsciStyle( hb_parni( 1 ), hbqt_par_QString( 2 ), *hbqt_par_QColor( 3 ), *hbqt_par_QColor( 4 ), * hbqt_par_QFont( 5 ), HB_ISLOG( 6 ) ? hb_parl( 6 ) : false ) ; + } + else + { + pObj = new QsciStyle() ; + } + + hb_retptrGC( hbqt_gcAllocate_QsciStyle( ( void * ) pObj, true ) ); +} + +/* + * int style () const + */ +HB_FUNC( QT_QSCISTYLE_STYLE ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retni( ( p )->style() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_STYLE FP=hb_retni( ( p )->style() ); p is NULL" ) ); + } +} + +/* + * void setDescription (const QString &description) + */ +HB_FUNC( QT_QSCISTYLE_SETDESCRIPTION ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setDescription( QsciStyle::tr( hb_parc( 2 ) ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETDESCRIPTION FP=( p )->setDescription( QsciStyle::tr( hb_parc( 2 ) ) ); p is NULL" ) ); + } +} + +/* + * QString description () const + */ +HB_FUNC( QT_QSCISTYLE_DESCRIPTION ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retc( ( p )->description().toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_DESCRIPTION FP=hb_retc( ( p )->description().toAscii().data() ); p is NULL" ) ); + } +} + +/* + * void setColor (const QColor &color) + */ +HB_FUNC( QT_QSCISTYLE_SETCOLOR ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setColor( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETCOLOR FP=( p )->setColor( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * QColor color () const + */ +HB_FUNC( QT_QSCISTYLE_COLOR ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_COLOR FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->color() ), true ) ); p is NULL" ) ); + } +} + +/* + * void setPaper (const QColor &paper) + */ +HB_FUNC( QT_QSCISTYLE_SETPAPER ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setPaper( *hbqt_par_QColor( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETPAPER FP=( p )->setPaper( *hbqt_par_QColor( 2 ) ); p is NULL" ) ); + } +} + +/* + * QColor paper () const + */ +HB_FUNC( QT_QSCISTYLE_PAPER ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_PAPER FP=hb_retptrGC( hbqt_gcAllocate_QColor( new QColor( ( p )->paper() ), true ) ); p is NULL" ) ); + } +} + +/* + * void setFont (const QFont &font) + */ +HB_FUNC( QT_QSCISTYLE_SETFONT ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setFont( *hbqt_par_QFont( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETFONT FP=( p )->setFont( *hbqt_par_QFont( 2 ) ); p is NULL" ) ); + } +} + +/* + * QFont font () const + */ +HB_FUNC( QT_QSCISTYLE_FONT ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font() ), true ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_FONT FP=hb_retptrGC( hbqt_gcAllocate_QFont( new QFont( ( p )->font() ), true ) ); p is NULL" ) ); + } +} + +/* + * void setEolFill (bool fill) + */ +HB_FUNC( QT_QSCISTYLE_SETEOLFILL ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setEolFill( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETEOLFILL FP=( p )->setEolFill( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * bool eolFill () const + */ +HB_FUNC( QT_QSCISTYLE_EOLFILL ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retl( ( p )->eolFill() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_EOLFILL FP=hb_retl( ( p )->eolFill() ); p is NULL" ) ); + } +} + +/* + * void setTextCase (TextCase text_case) + */ +HB_FUNC( QT_QSCISTYLE_SETTEXTCASE ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setTextCase( ( QsciStyle::TextCase ) hb_parni( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETTEXTCASE FP=( p )->setTextCase( ( QsciStyle::TextCase ) hb_parni( 2 ) ); p is NULL" ) ); + } +} + +/* + * TextCase textCase () const + */ +HB_FUNC( QT_QSCISTYLE_TEXTCASE ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retni( ( QsciStyle::TextCase ) ( p )->textCase() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_TEXTCASE FP=hb_retni( ( QsciStyle::TextCase ) ( p )->textCase() ); p is NULL" ) ); + } +} + +/* + * void setVisible (bool visible) + */ +HB_FUNC( QT_QSCISTYLE_SETVISIBLE ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setVisible( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETVISIBLE FP=( p )->setVisible( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * bool visible () const + */ +HB_FUNC( QT_QSCISTYLE_VISIBLE ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retl( ( p )->visible() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_VISIBLE FP=hb_retl( ( p )->visible() ); p is NULL" ) ); + } +} + +/* + * void setChangeable (bool changeable) + */ +HB_FUNC( QT_QSCISTYLE_SETCHANGEABLE ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setChangeable( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETCHANGEABLE FP=( p )->setChangeable( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * bool changeable () const + */ +HB_FUNC( QT_QSCISTYLE_CHANGEABLE ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retl( ( p )->changeable() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_CHANGEABLE FP=hb_retl( ( p )->changeable() ); p is NULL" ) ); + } +} + +/* + * void setHotspot (bool hotspot) + */ +HB_FUNC( QT_QSCISTYLE_SETHOTSPOT ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->setHotspot( hb_parl( 2 ) ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_SETHOTSPOT FP=( p )->setHotspot( hb_parl( 2 ) ); p is NULL" ) ); + } +} + +/* + * bool hotspot () const + */ +HB_FUNC( QT_QSCISTYLE_HOTSPOT ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + hb_retl( ( p )->hotspot() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_HOTSPOT FP=hb_retl( ( p )->hotspot() ); p is NULL" ) ); + } +} + +/* + * void refresh () + */ +HB_FUNC( QT_QSCISTYLE_REFRESH ) +{ + QsciStyle * p = hbqt_par_QsciStyle( 1 ); + if( p ) + ( p )->refresh(); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLE_REFRESH FP=( p )->refresh(); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/QsciStyledText.cpp b/harbour/contrib/hbqt/hbqscintilla/QsciStyledText.cpp new file mode 100644 index 0000000000..ac62196e83 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/QsciStyledText.cpp @@ -0,0 +1,179 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "../hbqt.h" + +/*----------------------------------------------------------------------*/ +#if QT_VERSION >= 0x040500 +/*----------------------------------------------------------------------*/ + +#include + +#include +#include "hbqt_garbage.h" + + +/* + * QsciStyledText (const QString &text, int style) + * QsciStyledText (const QString &text, const QsciStyle &style) + * + */ + +typedef struct +{ + QsciStyledText * ph; + bool bNew; + QT_G_FUNC_PTR func; +} QGC_POINTER_QsciStyledText; + +QT_G_FUNC( hbqt_gcRelease_QsciStyledText ) +{ + QGC_POINTER * p = ( QGC_POINTER * ) Cargo; + + if( p && p->bNew ) + { + if( p->ph ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _rel_QsciStyledText /.\\", p->ph ) ); + delete ( ( QsciStyledText * ) p->ph ); + HB_TRACE( HB_TR_DEBUG, ( "ph=%p YES_rel_QsciStyledText \\./", p->ph ) ); + p->ph = NULL; + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p DEL_rel_QsciStyledText : Object already deleted!", p->ph ) ); + p->ph = NULL; + } + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p PTR_rel_QsciStyledText : Object not created with new=true", p->ph ) ); + p->ph = NULL; + } +} + +void * hbqt_gcAllocate_QsciStyledText( void * pObj, bool bNew ) +{ + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), hbqt_gcFuncs() ); + + p->ph = ( QsciStyledText * ) pObj; + p->bNew = bNew; + p->func = hbqt_gcRelease_QsciStyledText; + + if( bNew ) + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p _new_QsciStyledText", pObj ) ); + } + else + { + HB_TRACE( HB_TR_DEBUG, ( "ph=%p NOT_new_QsciStyledText", pObj ) ); + } + return p; +} + +HB_FUNC( QT_QSCISTYLEDTEXT ) +{ + QsciStyledText * pObj = NULL; + + if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) ) + { + pObj = new QsciStyledText( hbqt_par_QString( 1 ), hb_parni( 2 ) ) ; + } + else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) ) + { + pObj = new QsciStyledText( hbqt_par_QString( 1 ), *hbqt_par_QsciStyle( 2 ) ) ; + } + + hb_retptrGC( hbqt_gcAllocate_QsciStyledText( ( void * ) pObj, true ) ); +} + +/* + * const QString & text () const + */ +HB_FUNC( QT_QSCISTYLEDTEXT_TEXT ) +{ + QsciStyledText * p = hbqt_par_QsciStyledText( 1 ); + if( p ) + hb_retc( ( p )->text().toAscii().data() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLEDTEXT_TEXT FP=hb_retc( ( p )->text().toAscii().data() ); p is NULL" ) ); + } +} + +/* + * int style () const + */ +HB_FUNC( QT_QSCISTYLEDTEXT_STYLE ) +{ + QsciStyledText * p = hbqt_par_QsciStyledText( 1 ); + if( p ) + hb_retni( ( p )->style() ); + else + { + HB_TRACE( HB_TR_DEBUG, ( "............................... F=QT_QSCISTYLEDTEXT_STYLE FP=hb_retni( ( p )->style() ); p is NULL" ) ); + } +} + + +/*----------------------------------------------------------------------*/ +#endif /* #if QT_VERSION >= 0x040500 */ +/*----------------------------------------------------------------------*/ diff --git a/harbour/contrib/hbqt/hbqscintilla/THBQsciScintilla.prg b/harbour/contrib/hbqt/hbqscintilla/THBQsciScintilla.prg new file mode 100644 index 0000000000..630c8f0fae --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/THBQsciScintilla.prg @@ -0,0 +1,81 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS HBQsciScintilla INHERIT HbQtObjectHandler, QsciScintilla + + METHOD new( ... ) + + + ENDCLASS + + +METHOD HBQsciScintilla:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_HBQsciScintilla( ... ) + RETURN Self + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciAPIs.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciAPIs.prg new file mode 100644 index 0000000000..cc6ede97fa --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciAPIs.prg @@ -0,0 +1,151 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciAPIs INHERIT HbQtObjectHandler, QsciAbstractAPIs + + METHOD new( ... ) + + METHOD add( cEntry ) + METHOD clear() + METHOD load( cFname ) + METHOD remove( cEntry ) + METHOD prepare() + METHOD cancelPreparation() + METHOD defaultPreparedName() + METHOD isPrepared( cFname ) + METHOD loadPrepared( cFname ) + METHOD savePrepared( cFname ) + METHOD updateAutoCompletionList( pContext, pList ) + METHOD autoCompletionSelected( cSel ) + METHOD event( pE ) + METHOD installedAPIFiles() + + ENDCLASS + + +METHOD QsciAPIs:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciAPIs( ... ) + RETURN Self + + +METHOD QsciAPIs:add( cEntry ) + RETURN Qt_QsciAPIs_add( ::pPtr, cEntry ) + + +METHOD QsciAPIs:clear() + RETURN Qt_QsciAPIs_clear( ::pPtr ) + + +METHOD QsciAPIs:load( cFname ) + RETURN Qt_QsciAPIs_load( ::pPtr, cFname ) + + +METHOD QsciAPIs:remove( cEntry ) + RETURN Qt_QsciAPIs_remove( ::pPtr, cEntry ) + + +METHOD QsciAPIs:prepare() + RETURN Qt_QsciAPIs_prepare( ::pPtr ) + + +METHOD QsciAPIs:cancelPreparation() + RETURN Qt_QsciAPIs_cancelPreparation( ::pPtr ) + + +METHOD QsciAPIs:defaultPreparedName() + RETURN Qt_QsciAPIs_defaultPreparedName( ::pPtr ) + + +METHOD QsciAPIs:isPrepared( cFname ) + RETURN Qt_QsciAPIs_isPrepared( ::pPtr, cFname ) + + +METHOD QsciAPIs:loadPrepared( cFname ) + RETURN Qt_QsciAPIs_loadPrepared( ::pPtr, cFname ) + + +METHOD QsciAPIs:savePrepared( cFname ) + RETURN Qt_QsciAPIs_savePrepared( ::pPtr, cFname ) + + +METHOD QsciAPIs:updateAutoCompletionList( pContext, pList ) + RETURN Qt_QsciAPIs_updateAutoCompletionList( ::pPtr, hbqt_ptr( pContext ), hbqt_ptr( pList ) ) + + +METHOD QsciAPIs:autoCompletionSelected( cSel ) + RETURN Qt_QsciAPIs_autoCompletionSelected( ::pPtr, cSel ) + + +METHOD QsciAPIs:event( pE ) + RETURN Qt_QsciAPIs_event( ::pPtr, hbqt_ptr( pE ) ) + + +METHOD QsciAPIs:installedAPIFiles() + RETURN Qt_QsciAPIs_installedAPIFiles( ::pPtr ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciAbstractAPIs.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciAbstractAPIs.prg new file mode 100644 index 0000000000..95b5bf8fc8 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciAbstractAPIs.prg @@ -0,0 +1,96 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciAbstractAPIs INHERIT HbQtObjectHandler + + METHOD new( ... ) + + METHOD lexer() + METHOD updateAutoCompletionList( pContext, pList ) + METHOD autoCompletionSelected( cSelection ) + + ENDCLASS + + +METHOD QsciAbstractAPIs:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciAbstractAPIs( ... ) + RETURN Self + + +METHOD QsciAbstractAPIs:lexer() + RETURN Qt_QsciAbstractAPIs_lexer( ::pPtr ) + + +METHOD QsciAbstractAPIs:updateAutoCompletionList( pContext, pList ) + RETURN Qt_QsciAbstractAPIs_updateAutoCompletionList( ::pPtr, hbqt_ptr( pContext ), hbqt_ptr( pList ) ) + + +METHOD QsciAbstractAPIs:autoCompletionSelected( cSelection ) + RETURN Qt_QsciAbstractAPIs_autoCompletionSelected( ::pPtr, cSelection ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciCommand.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciCommand.prg new file mode 100644 index 0000000000..a4f55eaa99 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciCommand.prg @@ -0,0 +1,111 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciCommand INHERIT HbQtObjectHandler + + METHOD new( ... ) + + METHOD setKey( nKey ) + METHOD setAlternateKey( nAltkey ) + METHOD key() + METHOD alternateKey() + METHOD description() + METHOD validKey( nKey ) + + ENDCLASS + + +METHOD QsciCommand:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciCommand( ... ) + RETURN Self + + +METHOD QsciCommand:setKey( nKey ) + RETURN Qt_QsciCommand_setKey( ::pPtr, nKey ) + + +METHOD QsciCommand:setAlternateKey( nAltkey ) + RETURN Qt_QsciCommand_setAlternateKey( ::pPtr, nAltkey ) + + +METHOD QsciCommand:key() + RETURN Qt_QsciCommand_key( ::pPtr ) + + +METHOD QsciCommand:alternateKey() + RETURN Qt_QsciCommand_alternateKey( ::pPtr ) + + +METHOD QsciCommand:description() + RETURN Qt_QsciCommand_description( ::pPtr ) + + +METHOD QsciCommand:validKey( nKey ) + RETURN Qt_QsciCommand_validKey( ::pPtr, nKey ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciCommandSet.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciCommandSet.prg new file mode 100644 index 0000000000..99faa69a2c --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciCommandSet.prg @@ -0,0 +1,101 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciCommandSet INHERIT HbQtObjectHandler + + METHOD new( ... ) + + METHOD readSettings( pQs, pPrefix ) + METHOD writeSettings( pQs, pPrefix ) + METHOD clearKeys() + METHOD clearAlternateKeys() + + ENDCLASS + + +METHOD QsciCommandSet:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciCommandSet( ... ) + RETURN Self + + +METHOD QsciCommandSet:readSettings( pQs, pPrefix ) + RETURN Qt_QsciCommandSet_readSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) ) + + +METHOD QsciCommandSet:writeSettings( pQs, pPrefix ) + RETURN Qt_QsciCommandSet_writeSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) ) + + +METHOD QsciCommandSet:clearKeys() + RETURN Qt_QsciCommandSet_clearKeys( ::pPtr ) + + +METHOD QsciCommandSet:clearAlternateKeys() + RETURN Qt_QsciCommandSet_clearAlternateKeys( ::pPtr ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciDocument.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciDocument.prg new file mode 100644 index 0000000000..3cd45a935e --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciDocument.prg @@ -0,0 +1,81 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciDocument INHERIT HbQtObjectHandler + + METHOD new( ... ) + + + ENDCLASS + + +METHOD QsciDocument:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciDocument( ... ) + RETURN Self + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciLexer.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciLexer.prg new file mode 100644 index 0000000000..6cc88199ea --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciLexer.prg @@ -0,0 +1,301 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciLexer INHERIT HbQtObjectHandler + + METHOD new( ... ) + + METHOD language() + METHOD lexer() + METHOD lexerId() + METHOD apis() + METHOD autoCompletionFillups() + METHOD autoCompletionWordSeparators() + METHOD autoIndentStyle() + METHOD blockEnd( nStyle ) + METHOD blockLookback() + METHOD blockStart( nStyle ) + METHOD blockStartKeyword( nStyle ) + METHOD braceStyle() + METHOD caseSensitive() + METHOD color( nStyle ) + METHOD eolFill( nStyle ) + METHOD font( nStyle ) + METHOD indentationGuideView() + METHOD keywords( nSet ) + METHOD defaultStyle() + METHOD description( nStyle ) + METHOD paper( nStyle ) + METHOD defaultColor() + METHOD defaultColor_1( nStyle ) + METHOD defaultEolFill( nStyle ) + METHOD defaultFont() + METHOD defaultFont_1( nStyle ) + METHOD defaultPaper() + METHOD defaultPaper_1( nStyle ) + METHOD editor() + METHOD setEditor( pEditor ) + METHOD readSettings( pQs, pPrefix ) + METHOD refreshProperties() + METHOD styleBitsNeeded() + METHOD wordCharacters() + METHOD writeSettings( pQs, pPrefix ) + METHOD setAPIs( pApis ) + METHOD setDefaultColor( pC ) + METHOD setDefaultFont( pF ) + METHOD setDefaultPaper( pC ) + METHOD setAutoIndentStyle( nAutoindentstyle ) + METHOD setColor( pC, nStyle ) + METHOD setEolFill( lEoffill, nStyle ) + METHOD setFont( pF, nStyle ) + METHOD setPaper( pC, nStyle ) + + ENDCLASS + + +METHOD QsciLexer:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciLexer( ... ) + RETURN Self + + +METHOD QsciLexer:language() + RETURN Qt_QsciLexer_language( ::pPtr ) + + +METHOD QsciLexer:lexer() + RETURN Qt_QsciLexer_lexer( ::pPtr ) + + +METHOD QsciLexer:lexerId() + RETURN Qt_QsciLexer_lexerId( ::pPtr ) + + +METHOD QsciLexer:apis() + RETURN Qt_QsciLexer_apis( ::pPtr ) + + +METHOD QsciLexer:autoCompletionFillups() + RETURN Qt_QsciLexer_autoCompletionFillups( ::pPtr ) + + +METHOD QsciLexer:autoCompletionWordSeparators() + RETURN Qt_QsciLexer_autoCompletionWordSeparators( ::pPtr ) + + +METHOD QsciLexer:autoIndentStyle() + RETURN Qt_QsciLexer_autoIndentStyle( ::pPtr ) + + +METHOD QsciLexer:blockEnd( nStyle ) + RETURN Qt_QsciLexer_blockEnd( ::pPtr, nStyle ) + + +METHOD QsciLexer:blockLookback() + RETURN Qt_QsciLexer_blockLookback( ::pPtr ) + + +METHOD QsciLexer:blockStart( nStyle ) + RETURN Qt_QsciLexer_blockStart( ::pPtr, nStyle ) + + +METHOD QsciLexer:blockStartKeyword( nStyle ) + RETURN Qt_QsciLexer_blockStartKeyword( ::pPtr, nStyle ) + + +METHOD QsciLexer:braceStyle() + RETURN Qt_QsciLexer_braceStyle( ::pPtr ) + + +METHOD QsciLexer:caseSensitive() + RETURN Qt_QsciLexer_caseSensitive( ::pPtr ) + + +METHOD QsciLexer:color( nStyle ) + RETURN Qt_QsciLexer_color( ::pPtr, nStyle ) + + +METHOD QsciLexer:eolFill( nStyle ) + RETURN Qt_QsciLexer_eolFill( ::pPtr, nStyle ) + + +METHOD QsciLexer:font( nStyle ) + RETURN Qt_QsciLexer_font( ::pPtr, nStyle ) + + +METHOD QsciLexer:indentationGuideView() + RETURN Qt_QsciLexer_indentationGuideView( ::pPtr ) + + +METHOD QsciLexer:keywords( nSet ) + RETURN Qt_QsciLexer_keywords( ::pPtr, nSet ) + + +METHOD QsciLexer:defaultStyle() + RETURN Qt_QsciLexer_defaultStyle( ::pPtr ) + + +METHOD QsciLexer:description( nStyle ) + RETURN Qt_QsciLexer_description( ::pPtr, nStyle ) + + +METHOD QsciLexer:paper( nStyle ) + RETURN Qt_QsciLexer_paper( ::pPtr, nStyle ) + + +METHOD QsciLexer:defaultColor() + RETURN Qt_QsciLexer_defaultColor( ::pPtr ) + + +METHOD QsciLexer:defaultColor_1( nStyle ) + RETURN Qt_QsciLexer_defaultColor_1( ::pPtr, nStyle ) + + +METHOD QsciLexer:defaultEolFill( nStyle ) + RETURN Qt_QsciLexer_defaultEolFill( ::pPtr, nStyle ) + + +METHOD QsciLexer:defaultFont() + RETURN Qt_QsciLexer_defaultFont( ::pPtr ) + + +METHOD QsciLexer:defaultFont_1( nStyle ) + RETURN Qt_QsciLexer_defaultFont_1( ::pPtr, nStyle ) + + +METHOD QsciLexer:defaultPaper() + RETURN Qt_QsciLexer_defaultPaper( ::pPtr ) + + +METHOD QsciLexer:defaultPaper_1( nStyle ) + RETURN Qt_QsciLexer_defaultPaper_1( ::pPtr, nStyle ) + + +METHOD QsciLexer:editor() + RETURN Qt_QsciLexer_editor( ::pPtr ) + + +METHOD QsciLexer:setEditor( pEditor ) + RETURN Qt_QsciLexer_setEditor( ::pPtr, hbqt_ptr( pEditor ) ) + + +METHOD QsciLexer:readSettings( pQs, pPrefix ) + RETURN Qt_QsciLexer_readSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) ) + + +METHOD QsciLexer:refreshProperties() + RETURN Qt_QsciLexer_refreshProperties( ::pPtr ) + + +METHOD QsciLexer:styleBitsNeeded() + RETURN Qt_QsciLexer_styleBitsNeeded( ::pPtr ) + + +METHOD QsciLexer:wordCharacters() + RETURN Qt_QsciLexer_wordCharacters( ::pPtr ) + + +METHOD QsciLexer:writeSettings( pQs, pPrefix ) + RETURN Qt_QsciLexer_writeSettings( ::pPtr, hbqt_ptr( pQs ), hbqt_ptr( pPrefix ) ) + + +METHOD QsciLexer:setAPIs( pApis ) + RETURN Qt_QsciLexer_setAPIs( ::pPtr, hbqt_ptr( pApis ) ) + + +METHOD QsciLexer:setDefaultColor( pC ) + RETURN Qt_QsciLexer_setDefaultColor( ::pPtr, hbqt_ptr( pC ) ) + + +METHOD QsciLexer:setDefaultFont( pF ) + RETURN Qt_QsciLexer_setDefaultFont( ::pPtr, hbqt_ptr( pF ) ) + + +METHOD QsciLexer:setDefaultPaper( pC ) + RETURN Qt_QsciLexer_setDefaultPaper( ::pPtr, hbqt_ptr( pC ) ) + + +METHOD QsciLexer:setAutoIndentStyle( nAutoindentstyle ) + RETURN Qt_QsciLexer_setAutoIndentStyle( ::pPtr, nAutoindentstyle ) + + +METHOD QsciLexer:setColor( pC, nStyle ) + RETURN Qt_QsciLexer_setColor( ::pPtr, hbqt_ptr( pC ), nStyle ) + + +METHOD QsciLexer:setEolFill( lEoffill, nStyle ) + RETURN Qt_QsciLexer_setEolFill( ::pPtr, lEoffill, nStyle ) + + +METHOD QsciLexer:setFont( pF, nStyle ) + RETURN Qt_QsciLexer_setFont( ::pPtr, hbqt_ptr( pF ), nStyle ) + + +METHOD QsciLexer:setPaper( pC, nStyle ) + RETURN Qt_QsciLexer_setPaper( ::pPtr, hbqt_ptr( pC ), nStyle ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciLexerCPP.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciLexerCPP.prg new file mode 100644 index 0000000000..a8a03444fc --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciLexerCPP.prg @@ -0,0 +1,216 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciLexerCPP INHERIT HbQtObjectHandler, QsciLexer + + METHOD new( ... ) + + METHOD language() + METHOD lexer() + METHOD autoCompletionWordSeparators() + METHOD blockEnd( nStyle ) + METHOD blockStart( nStyle ) + METHOD blockStartKeyword( nStyle ) + METHOD braceStyle() + METHOD wordCharacters() + METHOD defaultColor( nStyle ) + METHOD defaultEolFill( nStyle ) + METHOD defaultFont( nStyle ) + METHOD defaultPaper( nStyle ) + METHOD keywords( nSet ) + METHOD description( nStyle ) + METHOD refreshProperties() + METHOD foldAtElse() + METHOD foldComments() + METHOD foldCompact() + METHOD foldPreprocessor() + METHOD stylePreprocessor() + METHOD setDollarsAllowed( lAllowed ) + METHOD dollarsAllowed() + METHOD setFoldAtElse( lFold ) + METHOD setFoldComments( lFold ) + METHOD setFoldCompact( lFold ) + METHOD setFoldPreprocessor( lFold ) + METHOD setStylePreprocessor( lStyle ) + + ENDCLASS + + +METHOD QsciLexerCPP:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciLexerCPP( ... ) + RETURN Self + + +METHOD QsciLexerCPP:language() + RETURN Qt_QsciLexerCPP_language( ::pPtr ) + + +METHOD QsciLexerCPP:lexer() + RETURN Qt_QsciLexerCPP_lexer( ::pPtr ) + + +METHOD QsciLexerCPP:autoCompletionWordSeparators() + RETURN Qt_QsciLexerCPP_autoCompletionWordSeparators( ::pPtr ) + + +METHOD QsciLexerCPP:blockEnd( nStyle ) + RETURN Qt_QsciLexerCPP_blockEnd( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:blockStart( nStyle ) + RETURN Qt_QsciLexerCPP_blockStart( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:blockStartKeyword( nStyle ) + RETURN Qt_QsciLexerCPP_blockStartKeyword( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:braceStyle() + RETURN Qt_QsciLexerCPP_braceStyle( ::pPtr ) + + +METHOD QsciLexerCPP:wordCharacters() + RETURN Qt_QsciLexerCPP_wordCharacters( ::pPtr ) + + +METHOD QsciLexerCPP:defaultColor( nStyle ) + RETURN Qt_QsciLexerCPP_defaultColor( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:defaultEolFill( nStyle ) + RETURN Qt_QsciLexerCPP_defaultEolFill( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:defaultFont( nStyle ) + RETURN Qt_QsciLexerCPP_defaultFont( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:defaultPaper( nStyle ) + RETURN Qt_QsciLexerCPP_defaultPaper( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:keywords( nSet ) + RETURN Qt_QsciLexerCPP_keywords( ::pPtr, nSet ) + + +METHOD QsciLexerCPP:description( nStyle ) + RETURN Qt_QsciLexerCPP_description( ::pPtr, nStyle ) + + +METHOD QsciLexerCPP:refreshProperties() + RETURN Qt_QsciLexerCPP_refreshProperties( ::pPtr ) + + +METHOD QsciLexerCPP:foldAtElse() + RETURN Qt_QsciLexerCPP_foldAtElse( ::pPtr ) + + +METHOD QsciLexerCPP:foldComments() + RETURN Qt_QsciLexerCPP_foldComments( ::pPtr ) + + +METHOD QsciLexerCPP:foldCompact() + RETURN Qt_QsciLexerCPP_foldCompact( ::pPtr ) + + +METHOD QsciLexerCPP:foldPreprocessor() + RETURN Qt_QsciLexerCPP_foldPreprocessor( ::pPtr ) + + +METHOD QsciLexerCPP:stylePreprocessor() + RETURN Qt_QsciLexerCPP_stylePreprocessor( ::pPtr ) + + +METHOD QsciLexerCPP:setDollarsAllowed( lAllowed ) + RETURN Qt_QsciLexerCPP_setDollarsAllowed( ::pPtr, lAllowed ) + + +METHOD QsciLexerCPP:dollarsAllowed() + RETURN Qt_QsciLexerCPP_dollarsAllowed( ::pPtr ) + + +METHOD QsciLexerCPP:setFoldAtElse( lFold ) + RETURN Qt_QsciLexerCPP_setFoldAtElse( ::pPtr, lFold ) + + +METHOD QsciLexerCPP:setFoldComments( lFold ) + RETURN Qt_QsciLexerCPP_setFoldComments( ::pPtr, lFold ) + + +METHOD QsciLexerCPP:setFoldCompact( lFold ) + RETURN Qt_QsciLexerCPP_setFoldCompact( ::pPtr, lFold ) + + +METHOD QsciLexerCPP:setFoldPreprocessor( lFold ) + RETURN Qt_QsciLexerCPP_setFoldPreprocessor( ::pPtr, lFold ) + + +METHOD QsciLexerCPP:setStylePreprocessor( lStyle ) + RETURN Qt_QsciLexerCPP_setStylePreprocessor( ::pPtr, lStyle ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciLexerFlagship.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciLexerFlagship.prg new file mode 100644 index 0000000000..43bb38b316 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciLexerFlagship.prg @@ -0,0 +1,216 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciLexerFlagship INHERIT HbQtObjectHandler, QsciLexer + + METHOD new( ... ) + + METHOD language() + METHOD lexer() + METHOD autoCompletionWordSeparators() + METHOD blockEnd( nStyle ) + METHOD blockStart( nStyle ) + METHOD blockStartKeyword( nStyle ) + METHOD braceStyle() + METHOD wordCharacters() + METHOD defaultColor( nStyle ) + METHOD defaultEolFill( nStyle ) + METHOD defaultFont( nStyle ) + METHOD defaultPaper( nStyle ) + METHOD keywords( nSet ) + METHOD description( nStyle ) + METHOD refreshProperties() + METHOD foldAtElse() + METHOD foldComments() + METHOD foldCompact() + METHOD foldPreprocessor() + METHOD stylePreprocessor() + METHOD setDollarsAllowed( lAllowed ) + METHOD dollarsAllowed() + METHOD setFoldAtElse( lFold ) + METHOD setFoldComments( lFold ) + METHOD setFoldCompact( lFold ) + METHOD setFoldPreprocessor( lFold ) + METHOD setStylePreprocessor( lStyle ) + + ENDCLASS + + +METHOD QsciLexerFlagship:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciLexerFlagship( ... ) + RETURN Self + + +METHOD QsciLexerFlagship:language() + RETURN Qt_QsciLexerFlagship_language( ::pPtr ) + + +METHOD QsciLexerFlagship:lexer() + RETURN Qt_QsciLexerFlagship_lexer( ::pPtr ) + + +METHOD QsciLexerFlagship:autoCompletionWordSeparators() + RETURN Qt_QsciLexerFlagship_autoCompletionWordSeparators( ::pPtr ) + + +METHOD QsciLexerFlagship:blockEnd( nStyle ) + RETURN Qt_QsciLexerFlagship_blockEnd( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:blockStart( nStyle ) + RETURN Qt_QsciLexerFlagship_blockStart( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:blockStartKeyword( nStyle ) + RETURN Qt_QsciLexerFlagship_blockStartKeyword( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:braceStyle() + RETURN Qt_QsciLexerFlagship_braceStyle( ::pPtr ) + + +METHOD QsciLexerFlagship:wordCharacters() + RETURN Qt_QsciLexerFlagship_wordCharacters( ::pPtr ) + + +METHOD QsciLexerFlagship:defaultColor( nStyle ) + RETURN Qt_QsciLexerFlagship_defaultColor( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:defaultEolFill( nStyle ) + RETURN Qt_QsciLexerFlagship_defaultEolFill( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:defaultFont( nStyle ) + RETURN Qt_QsciLexerFlagship_defaultFont( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:defaultPaper( nStyle ) + RETURN Qt_QsciLexerFlagship_defaultPaper( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:keywords( nSet ) + RETURN Qt_QsciLexerFlagship_keywords( ::pPtr, nSet ) + + +METHOD QsciLexerFlagship:description( nStyle ) + RETURN Qt_QsciLexerFlagship_description( ::pPtr, nStyle ) + + +METHOD QsciLexerFlagship:refreshProperties() + RETURN Qt_QsciLexerFlagship_refreshProperties( ::pPtr ) + + +METHOD QsciLexerFlagship:foldAtElse() + RETURN Qt_QsciLexerFlagship_foldAtElse( ::pPtr ) + + +METHOD QsciLexerFlagship:foldComments() + RETURN Qt_QsciLexerFlagship_foldComments( ::pPtr ) + + +METHOD QsciLexerFlagship:foldCompact() + RETURN Qt_QsciLexerFlagship_foldCompact( ::pPtr ) + + +METHOD QsciLexerFlagship:foldPreprocessor() + RETURN Qt_QsciLexerFlagship_foldPreprocessor( ::pPtr ) + + +METHOD QsciLexerFlagship:stylePreprocessor() + RETURN Qt_QsciLexerFlagship_stylePreprocessor( ::pPtr ) + + +METHOD QsciLexerFlagship:setDollarsAllowed( lAllowed ) + RETURN Qt_QsciLexerFlagship_setDollarsAllowed( ::pPtr, lAllowed ) + + +METHOD QsciLexerFlagship:dollarsAllowed() + RETURN Qt_QsciLexerFlagship_dollarsAllowed( ::pPtr ) + + +METHOD QsciLexerFlagship:setFoldAtElse( lFold ) + RETURN Qt_QsciLexerFlagship_setFoldAtElse( ::pPtr, lFold ) + + +METHOD QsciLexerFlagship:setFoldComments( lFold ) + RETURN Qt_QsciLexerFlagship_setFoldComments( ::pPtr, lFold ) + + +METHOD QsciLexerFlagship:setFoldCompact( lFold ) + RETURN Qt_QsciLexerFlagship_setFoldCompact( ::pPtr, lFold ) + + +METHOD QsciLexerFlagship:setFoldPreprocessor( lFold ) + RETURN Qt_QsciLexerFlagship_setFoldPreprocessor( ::pPtr, lFold ) + + +METHOD QsciLexerFlagship:setStylePreprocessor( lStyle ) + RETURN Qt_QsciLexerFlagship_setStylePreprocessor( ::pPtr, lStyle ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciScintilla.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciScintilla.prg new file mode 100644 index 0000000000..84359d7121 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciScintilla.prg @@ -0,0 +1,1056 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciScintilla INHERIT HbQtObjectHandler + + METHOD new( ... ) + + METHOD annotate( nLine, cText, nStyle ) + METHOD annotate_1( nLine, cText, pStyle ) + METHOD annotate_2( nLine, pText ) + METHOD annotation( nLine ) + METHOD annotationDisplay() + METHOD clearAnnotations( nLine ) + METHOD autoCompletionCaseSensitivity() + METHOD autoCompletionFillupsEnabled() + METHOD autoCompletionReplaceWord() + METHOD autoCompletionShowSingle() + METHOD autoCompletionSource() + METHOD autoCompletionThreshold() + METHOD autoIndent() + METHOD backspaceUnindents() + METHOD beginUndoAction() + METHOD braceMatching() + METHOD callTipsStyle() + METHOD callTipsVisible() + METHOD cancelList() + METHOD caseSensitive() + METHOD clearFolds() + METHOD clearRegisteredImages() + METHOD color() + METHOD convertEols( nMode ) + METHOD document() + METHOD endUndoAction() + METHOD edgeColor() + METHOD edgeColumn() + METHOD edgeMode() + METHOD setFont( pF ) + METHOD eolMode() + METHOD eolVisibility() + METHOD findFirst( cExpr, lRe, lCs, lWo, lWrap, lForward, nLine, nIndex, lShow ) + METHOD findNext() + METHOD firstVisibleLine() + METHOD folding() + METHOD getCursorPosition( nLine, nIndex ) + METHOD getSelection( nLineFrom, nIndexFrom, nLineTo, nIndexTo ) + METHOD hasSelectedText() + METHOD indentation( nLine ) + METHOD indentationGuides() + METHOD indentationsUseTabs() + METHOD indentationWidth() + METHOD isCallTipActive() + METHOD isListActive() + METHOD isModified() + METHOD isReadOnly() + METHOD isRedoAvailable() + METHOD isUndoAvailable() + METHOD isUtf8() + METHOD isWordCharacter( cCh ) + METHOD lineAt( pPos ) + METHOD lineIndexFromPosition( nPosition, nLine, nIndex ) + METHOD lineLength( nLine ) + METHOD lines() + METHOD length() + METHOD lexer() + METHOD marginLineNumbers( nMargin ) + METHOD marginMarkerMask( nMargin ) + METHOD marginSensitivity( nMargin ) + METHOD marginType( nMargin ) + METHOD marginWidth( nMargin ) + METHOD markerDefine( nSym, nMnr ) + METHOD markerDefine_1( cCh, nMnr ) + METHOD markerDefine_2( pPm, nMnr ) + METHOD markerAdd( nLinenr, nMnr ) + METHOD markersAtLine( nLinenr ) + METHOD markerDelete( nLinenr, nMnr ) + METHOD markerDeleteAll( nMnr ) + METHOD markerDeleteHandle( nMhandle ) + METHOD markerLine( nMhandle ) + METHOD markerFindNext( nLinenr, nMask ) + METHOD markerFindPrevious( nLinenr, nMask ) + METHOD paper() + METHOD positionFromLineIndex( nLine, nIndex ) + METHOD read( pIo ) + METHOD recolor( nStart, nEnd ) + METHOD registerImage( nId, pPm ) + METHOD replace( cReplaceStr ) + METHOD resetFoldMarginColors() + METHOD setFoldMarginColors( pFore, pBack ) + METHOD setAnnotationDisplay( nDisplay ) + METHOD setAutoCompletionFillupsEnabled( lEnabled ) + METHOD setAutoCompletionFillups( pFillups ) + METHOD setAutoCompletionWordSeparators( pSeparators ) + METHOD setCallTipsBackgroundColor( pCol ) + METHOD setCallTipsForegroundColor( pCol ) + METHOD setCallTipsHighlightColor( pCol ) + METHOD setCallTipsStyle( nStyle ) + METHOD setCallTipsVisible( nNr ) + METHOD setDocument( pDocument ) + METHOD setEdgeColor( pCol ) + METHOD setEdgeColumn( nColnr ) + METHOD setEdgeMode( nMode ) + METHOD setMarginText( nLine, cText, nStyle ) + METHOD setMarginText_1( nLine, cText, pStyle ) + METHOD setMarginText_2( nLine, pText ) + METHOD setMarginType( nMargin, nType ) + METHOD clearMarginText( nLine ) + METHOD setMarkerBackgroundColor( pCol, nMnr ) + METHOD setMarkerForegroundColor( pCol, nMnr ) + METHOD setMatchedBraceBackgroundColor( pCol ) + METHOD setMatchedBraceForegroundColor( pCol ) + METHOD setUnmatchedBraceBackgroundColor( pCol ) + METHOD setUnmatchedBraceForegroundColor( pCol ) + METHOD setWrapVisualFlags( nEflag, nSflag, nSindent ) + METHOD selectedText() + METHOD selectionToEol() + METHOD setSelectionToEol( lFilled ) + METHOD showUserList( nId, pList ) + METHOD standardCommands() + METHOD tabIndents() + METHOD tabWidth() + METHOD text() + METHOD text_1( nLine ) + METHOD textHeight( nLinenr ) + METHOD whitespaceVisibility() + METHOD wordAtPoint( pPoint ) + METHOD wordCharacters() + METHOD wrapMode() + METHOD write( pIo ) + METHOD append( cText ) + METHOD autoCompleteFromAll() + METHOD autoCompleteFromAPIs() + METHOD autoCompleteFromDocument() + METHOD callTip() + METHOD clear() + METHOD copy() + METHOD cut() + METHOD ensureCursorVisible() + METHOD ensureLineVisible( nLine ) + METHOD foldAll( lChildren ) + METHOD foldLine( nLine ) + METHOD indent( nLine ) + METHOD insert( cText ) + METHOD insertAt( cText, nLine, nIndex ) + METHOD moveToMatchingBrace() + METHOD paste() + METHOD redo() + METHOD removeSelectedText() + METHOD resetSelectionBackgroundColor() + METHOD resetSelectionForegroundColor() + METHOD selectAll( lSelect ) + METHOD selectToMatchingBrace() + METHOD setAutoCompletionCaseSensitivity( lCs ) + METHOD setAutoCompletionReplaceWord( lReplace ) + METHOD setAutoCompletionShowSingle( lSingle ) + METHOD setAutoCompletionSource( nSource ) + METHOD setAutoCompletionThreshold( nThresh ) + METHOD setAutoIndent( lAutoindent ) + METHOD setBraceMatching( nBm ) + METHOD setBackspaceUnindents( lUnindent ) + METHOD setCaretForegroundColor( pCol ) + METHOD setCaretLineBackgroundColor( pCol ) + METHOD setCaretLineVisible( lEnable ) + METHOD setCaretWidth( nWidth ) + METHOD setColor( pC ) + METHOD setCursorPosition( nLine, nIndex ) + METHOD setEolMode( nMode ) + METHOD setEolVisibility( lVisible ) + METHOD setFolding( nFold, nMargin ) + METHOD setIndentation( nLine, nIndentation ) + METHOD setIndentationGuides( lEnable ) + METHOD setIndentationGuidesBackgroundColor( pCol ) + METHOD setIndentationGuidesForegroundColor( pCol ) + METHOD setIndentationsUseTabs( lTabs ) + METHOD setIndentationWidth( nWidth ) + METHOD setLexer( pLexer ) + METHOD setMarginsBackgroundColor( pCol ) + METHOD setMarginsFont( pF ) + METHOD setMarginsForegroundColor( pCol ) + METHOD setMarginLineNumbers( nMargin, lLnrs ) + METHOD setMarginMarkerMask( nMargin, nMask ) + METHOD setMarginSensitivity( nMargin, lSens ) + METHOD setMarginWidth( nMargin, nWidth ) + METHOD setMarginWidth_1( nMargin, cS ) + METHOD setModified( lM ) + METHOD setPaper( pC ) + METHOD setReadOnly( lRo ) + METHOD setSelection( nLineFrom, nIndexFrom, nLineTo, nIndexTo ) + METHOD setSelectionBackgroundColor( pCol ) + METHOD setSelectionForegroundColor( pCol ) + METHOD setTabIndents( lIndent ) + METHOD setTabWidth( nWidth ) + METHOD setText( cText ) + METHOD setUtf8( lCp ) + METHOD setWhitespaceVisibility( nMode ) + METHOD setWrapMode( nMode ) + METHOD undo() + METHOD unindent( nLine ) + METHOD zoomIn( nRange ) + METHOD zoomIn_1() + METHOD zoomOut( nRange ) + METHOD zoomOut_1() + METHOD zoomTo( nSize ) + + ENDCLASS + + +METHOD QsciScintilla:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciScintilla( ... ) + RETURN Self + + +METHOD QsciScintilla:annotate( nLine, cText, nStyle ) + RETURN Qt_QsciScintilla_annotate( ::pPtr, nLine, cText, nStyle ) + + +METHOD QsciScintilla:annotate_1( nLine, cText, pStyle ) + RETURN Qt_QsciScintilla_annotate_1( ::pPtr, nLine, cText, hbqt_ptr( pStyle ) ) + + +METHOD QsciScintilla:annotate_2( nLine, pText ) + RETURN Qt_QsciScintilla_annotate_2( ::pPtr, nLine, hbqt_ptr( pText ) ) + + +METHOD QsciScintilla:annotation( nLine ) + RETURN Qt_QsciScintilla_annotation( ::pPtr, nLine ) + + +METHOD QsciScintilla:annotationDisplay() + RETURN Qt_QsciScintilla_annotationDisplay( ::pPtr ) + + +METHOD QsciScintilla:clearAnnotations( nLine ) + RETURN Qt_QsciScintilla_clearAnnotations( ::pPtr, nLine ) + + +METHOD QsciScintilla:autoCompletionCaseSensitivity() + RETURN Qt_QsciScintilla_autoCompletionCaseSensitivity( ::pPtr ) + + +METHOD QsciScintilla:autoCompletionFillupsEnabled() + RETURN Qt_QsciScintilla_autoCompletionFillupsEnabled( ::pPtr ) + + +METHOD QsciScintilla:autoCompletionReplaceWord() + RETURN Qt_QsciScintilla_autoCompletionReplaceWord( ::pPtr ) + + +METHOD QsciScintilla:autoCompletionShowSingle() + RETURN Qt_QsciScintilla_autoCompletionShowSingle( ::pPtr ) + + +METHOD QsciScintilla:autoCompletionSource() + RETURN Qt_QsciScintilla_autoCompletionSource( ::pPtr ) + + +METHOD QsciScintilla:autoCompletionThreshold() + RETURN Qt_QsciScintilla_autoCompletionThreshold( ::pPtr ) + + +METHOD QsciScintilla:autoIndent() + RETURN Qt_QsciScintilla_autoIndent( ::pPtr ) + + +METHOD QsciScintilla:backspaceUnindents() + RETURN Qt_QsciScintilla_backspaceUnindents( ::pPtr ) + + +METHOD QsciScintilla:beginUndoAction() + RETURN Qt_QsciScintilla_beginUndoAction( ::pPtr ) + + +METHOD QsciScintilla:braceMatching() + RETURN Qt_QsciScintilla_braceMatching( ::pPtr ) + + +METHOD QsciScintilla:callTipsStyle() + RETURN Qt_QsciScintilla_callTipsStyle( ::pPtr ) + + +METHOD QsciScintilla:callTipsVisible() + RETURN Qt_QsciScintilla_callTipsVisible( ::pPtr ) + + +METHOD QsciScintilla:cancelList() + RETURN Qt_QsciScintilla_cancelList( ::pPtr ) + + +METHOD QsciScintilla:caseSensitive() + RETURN Qt_QsciScintilla_caseSensitive( ::pPtr ) + + +METHOD QsciScintilla:clearFolds() + RETURN Qt_QsciScintilla_clearFolds( ::pPtr ) + + +METHOD QsciScintilla:clearRegisteredImages() + RETURN Qt_QsciScintilla_clearRegisteredImages( ::pPtr ) + + +METHOD QsciScintilla:color() + RETURN Qt_QsciScintilla_color( ::pPtr ) + + +METHOD QsciScintilla:convertEols( nMode ) + RETURN Qt_QsciScintilla_convertEols( ::pPtr, nMode ) + + +METHOD QsciScintilla:document() + RETURN Qt_QsciScintilla_document( ::pPtr ) + + +METHOD QsciScintilla:endUndoAction() + RETURN Qt_QsciScintilla_endUndoAction( ::pPtr ) + + +METHOD QsciScintilla:edgeColor() + RETURN Qt_QsciScintilla_edgeColor( ::pPtr ) + + +METHOD QsciScintilla:edgeColumn() + RETURN Qt_QsciScintilla_edgeColumn( ::pPtr ) + + +METHOD QsciScintilla:edgeMode() + RETURN Qt_QsciScintilla_edgeMode( ::pPtr ) + + +METHOD QsciScintilla:setFont( pF ) + RETURN Qt_QsciScintilla_setFont( ::pPtr, hbqt_ptr( pF ) ) + + +METHOD QsciScintilla:eolMode() + RETURN Qt_QsciScintilla_eolMode( ::pPtr ) + + +METHOD QsciScintilla:eolVisibility() + RETURN Qt_QsciScintilla_eolVisibility( ::pPtr ) + + +METHOD QsciScintilla:findFirst( cExpr, lRe, lCs, lWo, lWrap, lForward, nLine, nIndex, lShow ) + RETURN Qt_QsciScintilla_findFirst( ::pPtr, cExpr, lRe, lCs, lWo, lWrap, lForward, nLine, nIndex, lShow ) + + +METHOD QsciScintilla:findNext() + RETURN Qt_QsciScintilla_findNext( ::pPtr ) + + +METHOD QsciScintilla:firstVisibleLine() + RETURN Qt_QsciScintilla_firstVisibleLine( ::pPtr ) + + +METHOD QsciScintilla:folding() + RETURN Qt_QsciScintilla_folding( ::pPtr ) + + +METHOD QsciScintilla:getCursorPosition( nLine, nIndex ) + RETURN Qt_QsciScintilla_getCursorPosition( ::pPtr, nLine, nIndex ) + + +METHOD QsciScintilla:getSelection( nLineFrom, nIndexFrom, nLineTo, nIndexTo ) + RETURN Qt_QsciScintilla_getSelection( ::pPtr, nLineFrom, nIndexFrom, nLineTo, nIndexTo ) + + +METHOD QsciScintilla:hasSelectedText() + RETURN Qt_QsciScintilla_hasSelectedText( ::pPtr ) + + +METHOD QsciScintilla:indentation( nLine ) + RETURN Qt_QsciScintilla_indentation( ::pPtr, nLine ) + + +METHOD QsciScintilla:indentationGuides() + RETURN Qt_QsciScintilla_indentationGuides( ::pPtr ) + + +METHOD QsciScintilla:indentationsUseTabs() + RETURN Qt_QsciScintilla_indentationsUseTabs( ::pPtr ) + + +METHOD QsciScintilla:indentationWidth() + RETURN Qt_QsciScintilla_indentationWidth( ::pPtr ) + + +METHOD QsciScintilla:isCallTipActive() + RETURN Qt_QsciScintilla_isCallTipActive( ::pPtr ) + + +METHOD QsciScintilla:isListActive() + RETURN Qt_QsciScintilla_isListActive( ::pPtr ) + + +METHOD QsciScintilla:isModified() + RETURN Qt_QsciScintilla_isModified( ::pPtr ) + + +METHOD QsciScintilla:isReadOnly() + RETURN Qt_QsciScintilla_isReadOnly( ::pPtr ) + + +METHOD QsciScintilla:isRedoAvailable() + RETURN Qt_QsciScintilla_isRedoAvailable( ::pPtr ) + + +METHOD QsciScintilla:isUndoAvailable() + RETURN Qt_QsciScintilla_isUndoAvailable( ::pPtr ) + + +METHOD QsciScintilla:isUtf8() + RETURN Qt_QsciScintilla_isUtf8( ::pPtr ) + + +METHOD QsciScintilla:isWordCharacter( cCh ) + RETURN Qt_QsciScintilla_isWordCharacter( ::pPtr, cCh ) + + +METHOD QsciScintilla:lineAt( pPos ) + RETURN Qt_QsciScintilla_lineAt( ::pPtr, hbqt_ptr( pPos ) ) + + +METHOD QsciScintilla:lineIndexFromPosition( nPosition, nLine, nIndex ) + RETURN Qt_QsciScintilla_lineIndexFromPosition( ::pPtr, nPosition, nLine, nIndex ) + + +METHOD QsciScintilla:lineLength( nLine ) + RETURN Qt_QsciScintilla_lineLength( ::pPtr, nLine ) + + +METHOD QsciScintilla:lines() + RETURN Qt_QsciScintilla_lines( ::pPtr ) + + +METHOD QsciScintilla:length() + RETURN Qt_QsciScintilla_length( ::pPtr ) + + +METHOD QsciScintilla:lexer() + RETURN Qt_QsciScintilla_lexer( ::pPtr ) + + +METHOD QsciScintilla:marginLineNumbers( nMargin ) + RETURN Qt_QsciScintilla_marginLineNumbers( ::pPtr, nMargin ) + + +METHOD QsciScintilla:marginMarkerMask( nMargin ) + RETURN Qt_QsciScintilla_marginMarkerMask( ::pPtr, nMargin ) + + +METHOD QsciScintilla:marginSensitivity( nMargin ) + RETURN Qt_QsciScintilla_marginSensitivity( ::pPtr, nMargin ) + + +METHOD QsciScintilla:marginType( nMargin ) + RETURN Qt_QsciScintilla_marginType( ::pPtr, nMargin ) + + +METHOD QsciScintilla:marginWidth( nMargin ) + RETURN Qt_QsciScintilla_marginWidth( ::pPtr, nMargin ) + + +METHOD QsciScintilla:markerDefine( nSym, nMnr ) + RETURN Qt_QsciScintilla_markerDefine( ::pPtr, nSym, nMnr ) + + +METHOD QsciScintilla:markerDefine_1( cCh, nMnr ) + RETURN Qt_QsciScintilla_markerDefine_1( ::pPtr, cCh, nMnr ) + + +METHOD QsciScintilla:markerDefine_2( pPm, nMnr ) + RETURN Qt_QsciScintilla_markerDefine_2( ::pPtr, hbqt_ptr( pPm ), nMnr ) + + +METHOD QsciScintilla:markerAdd( nLinenr, nMnr ) + RETURN Qt_QsciScintilla_markerAdd( ::pPtr, nLinenr, nMnr ) + + +METHOD QsciScintilla:markersAtLine( nLinenr ) + RETURN Qt_QsciScintilla_markersAtLine( ::pPtr, nLinenr ) + + +METHOD QsciScintilla:markerDelete( nLinenr, nMnr ) + RETURN Qt_QsciScintilla_markerDelete( ::pPtr, nLinenr, nMnr ) + + +METHOD QsciScintilla:markerDeleteAll( nMnr ) + RETURN Qt_QsciScintilla_markerDeleteAll( ::pPtr, nMnr ) + + +METHOD QsciScintilla:markerDeleteHandle( nMhandle ) + RETURN Qt_QsciScintilla_markerDeleteHandle( ::pPtr, nMhandle ) + + +METHOD QsciScintilla:markerLine( nMhandle ) + RETURN Qt_QsciScintilla_markerLine( ::pPtr, nMhandle ) + + +METHOD QsciScintilla:markerFindNext( nLinenr, nMask ) + RETURN Qt_QsciScintilla_markerFindNext( ::pPtr, nLinenr, nMask ) + + +METHOD QsciScintilla:markerFindPrevious( nLinenr, nMask ) + RETURN Qt_QsciScintilla_markerFindPrevious( ::pPtr, nLinenr, nMask ) + + +METHOD QsciScintilla:paper() + RETURN Qt_QsciScintilla_paper( ::pPtr ) + + +METHOD QsciScintilla:positionFromLineIndex( nLine, nIndex ) + RETURN Qt_QsciScintilla_positionFromLineIndex( ::pPtr, nLine, nIndex ) + + +METHOD QsciScintilla:read( pIo ) + RETURN Qt_QsciScintilla_read( ::pPtr, hbqt_ptr( pIo ) ) + + +METHOD QsciScintilla:recolor( nStart, nEnd ) + RETURN Qt_QsciScintilla_recolor( ::pPtr, nStart, nEnd ) + + +METHOD QsciScintilla:registerImage( nId, pPm ) + RETURN Qt_QsciScintilla_registerImage( ::pPtr, nId, hbqt_ptr( pPm ) ) + + +METHOD QsciScintilla:replace( cReplaceStr ) + RETURN Qt_QsciScintilla_replace( ::pPtr, cReplaceStr ) + + +METHOD QsciScintilla:resetFoldMarginColors() + RETURN Qt_QsciScintilla_resetFoldMarginColors( ::pPtr ) + + +METHOD QsciScintilla:setFoldMarginColors( pFore, pBack ) + RETURN Qt_QsciScintilla_setFoldMarginColors( ::pPtr, hbqt_ptr( pFore ), hbqt_ptr( pBack ) ) + + +METHOD QsciScintilla:setAnnotationDisplay( nDisplay ) + RETURN Qt_QsciScintilla_setAnnotationDisplay( ::pPtr, nDisplay ) + + +METHOD QsciScintilla:setAutoCompletionFillupsEnabled( lEnabled ) + RETURN Qt_QsciScintilla_setAutoCompletionFillupsEnabled( ::pPtr, lEnabled ) + + +METHOD QsciScintilla:setAutoCompletionFillups( pFillups ) + RETURN Qt_QsciScintilla_setAutoCompletionFillups( ::pPtr, hbqt_ptr( pFillups ) ) + + +METHOD QsciScintilla:setAutoCompletionWordSeparators( pSeparators ) + RETURN Qt_QsciScintilla_setAutoCompletionWordSeparators( ::pPtr, hbqt_ptr( pSeparators ) ) + + +METHOD QsciScintilla:setCallTipsBackgroundColor( pCol ) + RETURN Qt_QsciScintilla_setCallTipsBackgroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setCallTipsForegroundColor( pCol ) + RETURN Qt_QsciScintilla_setCallTipsForegroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setCallTipsHighlightColor( pCol ) + RETURN Qt_QsciScintilla_setCallTipsHighlightColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setCallTipsStyle( nStyle ) + RETURN Qt_QsciScintilla_setCallTipsStyle( ::pPtr, nStyle ) + + +METHOD QsciScintilla:setCallTipsVisible( nNr ) + RETURN Qt_QsciScintilla_setCallTipsVisible( ::pPtr, nNr ) + + +METHOD QsciScintilla:setDocument( pDocument ) + RETURN Qt_QsciScintilla_setDocument( ::pPtr, hbqt_ptr( pDocument ) ) + + +METHOD QsciScintilla:setEdgeColor( pCol ) + RETURN Qt_QsciScintilla_setEdgeColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setEdgeColumn( nColnr ) + RETURN Qt_QsciScintilla_setEdgeColumn( ::pPtr, nColnr ) + + +METHOD QsciScintilla:setEdgeMode( nMode ) + RETURN Qt_QsciScintilla_setEdgeMode( ::pPtr, nMode ) + + +METHOD QsciScintilla:setMarginText( nLine, cText, nStyle ) + RETURN Qt_QsciScintilla_setMarginText( ::pPtr, nLine, cText, nStyle ) + + +METHOD QsciScintilla:setMarginText_1( nLine, cText, pStyle ) + RETURN Qt_QsciScintilla_setMarginText_1( ::pPtr, nLine, cText, hbqt_ptr( pStyle ) ) + + +METHOD QsciScintilla:setMarginText_2( nLine, pText ) + RETURN Qt_QsciScintilla_setMarginText_2( ::pPtr, nLine, hbqt_ptr( pText ) ) + + +METHOD QsciScintilla:setMarginType( nMargin, nType ) + RETURN Qt_QsciScintilla_setMarginType( ::pPtr, nMargin, nType ) + + +METHOD QsciScintilla:clearMarginText( nLine ) + RETURN Qt_QsciScintilla_clearMarginText( ::pPtr, nLine ) + + +METHOD QsciScintilla:setMarkerBackgroundColor( pCol, nMnr ) + RETURN Qt_QsciScintilla_setMarkerBackgroundColor( ::pPtr, hbqt_ptr( pCol ), nMnr ) + + +METHOD QsciScintilla:setMarkerForegroundColor( pCol, nMnr ) + RETURN Qt_QsciScintilla_setMarkerForegroundColor( ::pPtr, hbqt_ptr( pCol ), nMnr ) + + +METHOD QsciScintilla:setMatchedBraceBackgroundColor( pCol ) + RETURN Qt_QsciScintilla_setMatchedBraceBackgroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setMatchedBraceForegroundColor( pCol ) + RETURN Qt_QsciScintilla_setMatchedBraceForegroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setUnmatchedBraceBackgroundColor( pCol ) + RETURN Qt_QsciScintilla_setUnmatchedBraceBackgroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setUnmatchedBraceForegroundColor( pCol ) + RETURN Qt_QsciScintilla_setUnmatchedBraceForegroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setWrapVisualFlags( nEflag, nSflag, nSindent ) + RETURN Qt_QsciScintilla_setWrapVisualFlags( ::pPtr, nEflag, nSflag, nSindent ) + + +METHOD QsciScintilla:selectedText() + RETURN Qt_QsciScintilla_selectedText( ::pPtr ) + + +METHOD QsciScintilla:selectionToEol() + RETURN Qt_QsciScintilla_selectionToEol( ::pPtr ) + + +METHOD QsciScintilla:setSelectionToEol( lFilled ) + RETURN Qt_QsciScintilla_setSelectionToEol( ::pPtr, lFilled ) + + +METHOD QsciScintilla:showUserList( nId, pList ) + RETURN Qt_QsciScintilla_showUserList( ::pPtr, nId, hbqt_ptr( pList ) ) + + +METHOD QsciScintilla:standardCommands() + RETURN Qt_QsciScintilla_standardCommands( ::pPtr ) + + +METHOD QsciScintilla:tabIndents() + RETURN Qt_QsciScintilla_tabIndents( ::pPtr ) + + +METHOD QsciScintilla:tabWidth() + RETURN Qt_QsciScintilla_tabWidth( ::pPtr ) + + +METHOD QsciScintilla:text() + RETURN Qt_QsciScintilla_text( ::pPtr ) + + +METHOD QsciScintilla:text_1( nLine ) + RETURN Qt_QsciScintilla_text_1( ::pPtr, nLine ) + + +METHOD QsciScintilla:textHeight( nLinenr ) + RETURN Qt_QsciScintilla_textHeight( ::pPtr, nLinenr ) + + +METHOD QsciScintilla:whitespaceVisibility() + RETURN Qt_QsciScintilla_whitespaceVisibility( ::pPtr ) + + +METHOD QsciScintilla:wordAtPoint( pPoint ) + RETURN Qt_QsciScintilla_wordAtPoint( ::pPtr, hbqt_ptr( pPoint ) ) + + +METHOD QsciScintilla:wordCharacters() + RETURN Qt_QsciScintilla_wordCharacters( ::pPtr ) + + +METHOD QsciScintilla:wrapMode() + RETURN Qt_QsciScintilla_wrapMode( ::pPtr ) + + +METHOD QsciScintilla:write( pIo ) + RETURN Qt_QsciScintilla_write( ::pPtr, hbqt_ptr( pIo ) ) + + +METHOD QsciScintilla:append( cText ) + RETURN Qt_QsciScintilla_append( ::pPtr, cText ) + + +METHOD QsciScintilla:autoCompleteFromAll() + RETURN Qt_QsciScintilla_autoCompleteFromAll( ::pPtr ) + + +METHOD QsciScintilla:autoCompleteFromAPIs() + RETURN Qt_QsciScintilla_autoCompleteFromAPIs( ::pPtr ) + + +METHOD QsciScintilla:autoCompleteFromDocument() + RETURN Qt_QsciScintilla_autoCompleteFromDocument( ::pPtr ) + + +METHOD QsciScintilla:callTip() + RETURN Qt_QsciScintilla_callTip( ::pPtr ) + + +METHOD QsciScintilla:clear() + RETURN Qt_QsciScintilla_clear( ::pPtr ) + + +METHOD QsciScintilla:copy() + RETURN Qt_QsciScintilla_copy( ::pPtr ) + + +METHOD QsciScintilla:cut() + RETURN Qt_QsciScintilla_cut( ::pPtr ) + + +METHOD QsciScintilla:ensureCursorVisible() + RETURN Qt_QsciScintilla_ensureCursorVisible( ::pPtr ) + + +METHOD QsciScintilla:ensureLineVisible( nLine ) + RETURN Qt_QsciScintilla_ensureLineVisible( ::pPtr, nLine ) + + +METHOD QsciScintilla:foldAll( lChildren ) + RETURN Qt_QsciScintilla_foldAll( ::pPtr, lChildren ) + + +METHOD QsciScintilla:foldLine( nLine ) + RETURN Qt_QsciScintilla_foldLine( ::pPtr, nLine ) + + +METHOD QsciScintilla:indent( nLine ) + RETURN Qt_QsciScintilla_indent( ::pPtr, nLine ) + + +METHOD QsciScintilla:insert( cText ) + RETURN Qt_QsciScintilla_insert( ::pPtr, cText ) + + +METHOD QsciScintilla:insertAt( cText, nLine, nIndex ) + RETURN Qt_QsciScintilla_insertAt( ::pPtr, cText, nLine, nIndex ) + + +METHOD QsciScintilla:moveToMatchingBrace() + RETURN Qt_QsciScintilla_moveToMatchingBrace( ::pPtr ) + + +METHOD QsciScintilla:paste() + RETURN Qt_QsciScintilla_paste( ::pPtr ) + + +METHOD QsciScintilla:redo() + RETURN Qt_QsciScintilla_redo( ::pPtr ) + + +METHOD QsciScintilla:removeSelectedText() + RETURN Qt_QsciScintilla_removeSelectedText( ::pPtr ) + + +METHOD QsciScintilla:resetSelectionBackgroundColor() + RETURN Qt_QsciScintilla_resetSelectionBackgroundColor( ::pPtr ) + + +METHOD QsciScintilla:resetSelectionForegroundColor() + RETURN Qt_QsciScintilla_resetSelectionForegroundColor( ::pPtr ) + + +METHOD QsciScintilla:selectAll( lSelect ) + RETURN Qt_QsciScintilla_selectAll( ::pPtr, lSelect ) + + +METHOD QsciScintilla:selectToMatchingBrace() + RETURN Qt_QsciScintilla_selectToMatchingBrace( ::pPtr ) + + +METHOD QsciScintilla:setAutoCompletionCaseSensitivity( lCs ) + RETURN Qt_QsciScintilla_setAutoCompletionCaseSensitivity( ::pPtr, lCs ) + + +METHOD QsciScintilla:setAutoCompletionReplaceWord( lReplace ) + RETURN Qt_QsciScintilla_setAutoCompletionReplaceWord( ::pPtr, lReplace ) + + +METHOD QsciScintilla:setAutoCompletionShowSingle( lSingle ) + RETURN Qt_QsciScintilla_setAutoCompletionShowSingle( ::pPtr, lSingle ) + + +METHOD QsciScintilla:setAutoCompletionSource( nSource ) + RETURN Qt_QsciScintilla_setAutoCompletionSource( ::pPtr, nSource ) + + +METHOD QsciScintilla:setAutoCompletionThreshold( nThresh ) + RETURN Qt_QsciScintilla_setAutoCompletionThreshold( ::pPtr, nThresh ) + + +METHOD QsciScintilla:setAutoIndent( lAutoindent ) + RETURN Qt_QsciScintilla_setAutoIndent( ::pPtr, lAutoindent ) + + +METHOD QsciScintilla:setBraceMatching( nBm ) + RETURN Qt_QsciScintilla_setBraceMatching( ::pPtr, nBm ) + + +METHOD QsciScintilla:setBackspaceUnindents( lUnindent ) + RETURN Qt_QsciScintilla_setBackspaceUnindents( ::pPtr, lUnindent ) + + +METHOD QsciScintilla:setCaretForegroundColor( pCol ) + RETURN Qt_QsciScintilla_setCaretForegroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setCaretLineBackgroundColor( pCol ) + RETURN Qt_QsciScintilla_setCaretLineBackgroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setCaretLineVisible( lEnable ) + RETURN Qt_QsciScintilla_setCaretLineVisible( ::pPtr, lEnable ) + + +METHOD QsciScintilla:setCaretWidth( nWidth ) + RETURN Qt_QsciScintilla_setCaretWidth( ::pPtr, nWidth ) + + +METHOD QsciScintilla:setColor( pC ) + RETURN Qt_QsciScintilla_setColor( ::pPtr, hbqt_ptr( pC ) ) + + +METHOD QsciScintilla:setCursorPosition( nLine, nIndex ) + RETURN Qt_QsciScintilla_setCursorPosition( ::pPtr, nLine, nIndex ) + + +METHOD QsciScintilla:setEolMode( nMode ) + RETURN Qt_QsciScintilla_setEolMode( ::pPtr, nMode ) + + +METHOD QsciScintilla:setEolVisibility( lVisible ) + RETURN Qt_QsciScintilla_setEolVisibility( ::pPtr, lVisible ) + + +METHOD QsciScintilla:setFolding( nFold, nMargin ) + RETURN Qt_QsciScintilla_setFolding( ::pPtr, nFold, nMargin ) + + +METHOD QsciScintilla:setIndentation( nLine, nIndentation ) + RETURN Qt_QsciScintilla_setIndentation( ::pPtr, nLine, nIndentation ) + + +METHOD QsciScintilla:setIndentationGuides( lEnable ) + RETURN Qt_QsciScintilla_setIndentationGuides( ::pPtr, lEnable ) + + +METHOD QsciScintilla:setIndentationGuidesBackgroundColor( pCol ) + RETURN Qt_QsciScintilla_setIndentationGuidesBackgroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setIndentationGuidesForegroundColor( pCol ) + RETURN Qt_QsciScintilla_setIndentationGuidesForegroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setIndentationsUseTabs( lTabs ) + RETURN Qt_QsciScintilla_setIndentationsUseTabs( ::pPtr, lTabs ) + + +METHOD QsciScintilla:setIndentationWidth( nWidth ) + RETURN Qt_QsciScintilla_setIndentationWidth( ::pPtr, nWidth ) + + +METHOD QsciScintilla:setLexer( pLexer ) + RETURN Qt_QsciScintilla_setLexer( ::pPtr, hbqt_ptr( pLexer ) ) + + +METHOD QsciScintilla:setMarginsBackgroundColor( pCol ) + RETURN Qt_QsciScintilla_setMarginsBackgroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setMarginsFont( pF ) + RETURN Qt_QsciScintilla_setMarginsFont( ::pPtr, hbqt_ptr( pF ) ) + + +METHOD QsciScintilla:setMarginsForegroundColor( pCol ) + RETURN Qt_QsciScintilla_setMarginsForegroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setMarginLineNumbers( nMargin, lLnrs ) + RETURN Qt_QsciScintilla_setMarginLineNumbers( ::pPtr, nMargin, lLnrs ) + + +METHOD QsciScintilla:setMarginMarkerMask( nMargin, nMask ) + RETURN Qt_QsciScintilla_setMarginMarkerMask( ::pPtr, nMargin, nMask ) + + +METHOD QsciScintilla:setMarginSensitivity( nMargin, lSens ) + RETURN Qt_QsciScintilla_setMarginSensitivity( ::pPtr, nMargin, lSens ) + + +METHOD QsciScintilla:setMarginWidth( nMargin, nWidth ) + RETURN Qt_QsciScintilla_setMarginWidth( ::pPtr, nMargin, nWidth ) + + +METHOD QsciScintilla:setMarginWidth_1( nMargin, cS ) + RETURN Qt_QsciScintilla_setMarginWidth_1( ::pPtr, nMargin, cS ) + + +METHOD QsciScintilla:setModified( lM ) + RETURN Qt_QsciScintilla_setModified( ::pPtr, lM ) + + +METHOD QsciScintilla:setPaper( pC ) + RETURN Qt_QsciScintilla_setPaper( ::pPtr, hbqt_ptr( pC ) ) + + +METHOD QsciScintilla:setReadOnly( lRo ) + RETURN Qt_QsciScintilla_setReadOnly( ::pPtr, lRo ) + + +METHOD QsciScintilla:setSelection( nLineFrom, nIndexFrom, nLineTo, nIndexTo ) + RETURN Qt_QsciScintilla_setSelection( ::pPtr, nLineFrom, nIndexFrom, nLineTo, nIndexTo ) + + +METHOD QsciScintilla:setSelectionBackgroundColor( pCol ) + RETURN Qt_QsciScintilla_setSelectionBackgroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setSelectionForegroundColor( pCol ) + RETURN Qt_QsciScintilla_setSelectionForegroundColor( ::pPtr, hbqt_ptr( pCol ) ) + + +METHOD QsciScintilla:setTabIndents( lIndent ) + RETURN Qt_QsciScintilla_setTabIndents( ::pPtr, lIndent ) + + +METHOD QsciScintilla:setTabWidth( nWidth ) + RETURN Qt_QsciScintilla_setTabWidth( ::pPtr, nWidth ) + + +METHOD QsciScintilla:setText( cText ) + RETURN Qt_QsciScintilla_setText( ::pPtr, cText ) + + +METHOD QsciScintilla:setUtf8( lCp ) + RETURN Qt_QsciScintilla_setUtf8( ::pPtr, lCp ) + + +METHOD QsciScintilla:setWhitespaceVisibility( nMode ) + RETURN Qt_QsciScintilla_setWhitespaceVisibility( ::pPtr, nMode ) + + +METHOD QsciScintilla:setWrapMode( nMode ) + RETURN Qt_QsciScintilla_setWrapMode( ::pPtr, nMode ) + + +METHOD QsciScintilla:undo() + RETURN Qt_QsciScintilla_undo( ::pPtr ) + + +METHOD QsciScintilla:unindent( nLine ) + RETURN Qt_QsciScintilla_unindent( ::pPtr, nLine ) + + +METHOD QsciScintilla:zoomIn( nRange ) + RETURN Qt_QsciScintilla_zoomIn( ::pPtr, nRange ) + + +METHOD QsciScintilla:zoomIn_1() + RETURN Qt_QsciScintilla_zoomIn_1( ::pPtr ) + + +METHOD QsciScintilla:zoomOut( nRange ) + RETURN Qt_QsciScintilla_zoomOut( ::pPtr, nRange ) + + +METHOD QsciScintilla:zoomOut_1() + RETURN Qt_QsciScintilla_zoomOut_1( ::pPtr ) + + +METHOD QsciScintilla:zoomTo( nSize ) + RETURN Qt_QsciScintilla_zoomTo( ::pPtr, nSize ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciStyle.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciStyle.prg new file mode 100644 index 0000000000..49f783c463 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciStyle.prg @@ -0,0 +1,181 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciStyle INHERIT HbQtObjectHandler + + METHOD new( ... ) + + METHOD style() + METHOD setDescription( cDescription ) + METHOD description() + METHOD setColor( pColor ) + METHOD color() + METHOD setPaper( pPaper ) + METHOD paper() + METHOD setFont( pFont ) + METHOD font() + METHOD setEolFill( lFill ) + METHOD eolFill() + METHOD setTextCase( nText_case ) + METHOD textCase() + METHOD setVisible( lVisible ) + METHOD visible() + METHOD setChangeable( lChangeable ) + METHOD changeable() + METHOD setHotspot( lHotspot ) + METHOD hotspot() + METHOD refresh() + + ENDCLASS + + +METHOD QsciStyle:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciStyle( ... ) + RETURN Self + + +METHOD QsciStyle:style() + RETURN Qt_QsciStyle_style( ::pPtr ) + + +METHOD QsciStyle:setDescription( cDescription ) + RETURN Qt_QsciStyle_setDescription( ::pPtr, cDescription ) + + +METHOD QsciStyle:description() + RETURN Qt_QsciStyle_description( ::pPtr ) + + +METHOD QsciStyle:setColor( pColor ) + RETURN Qt_QsciStyle_setColor( ::pPtr, hbqt_ptr( pColor ) ) + + +METHOD QsciStyle:color() + RETURN Qt_QsciStyle_color( ::pPtr ) + + +METHOD QsciStyle:setPaper( pPaper ) + RETURN Qt_QsciStyle_setPaper( ::pPtr, hbqt_ptr( pPaper ) ) + + +METHOD QsciStyle:paper() + RETURN Qt_QsciStyle_paper( ::pPtr ) + + +METHOD QsciStyle:setFont( pFont ) + RETURN Qt_QsciStyle_setFont( ::pPtr, hbqt_ptr( pFont ) ) + + +METHOD QsciStyle:font() + RETURN Qt_QsciStyle_font( ::pPtr ) + + +METHOD QsciStyle:setEolFill( lFill ) + RETURN Qt_QsciStyle_setEolFill( ::pPtr, lFill ) + + +METHOD QsciStyle:eolFill() + RETURN Qt_QsciStyle_eolFill( ::pPtr ) + + +METHOD QsciStyle:setTextCase( nText_case ) + RETURN Qt_QsciStyle_setTextCase( ::pPtr, nText_case ) + + +METHOD QsciStyle:textCase() + RETURN Qt_QsciStyle_textCase( ::pPtr ) + + +METHOD QsciStyle:setVisible( lVisible ) + RETURN Qt_QsciStyle_setVisible( ::pPtr, lVisible ) + + +METHOD QsciStyle:visible() + RETURN Qt_QsciStyle_visible( ::pPtr ) + + +METHOD QsciStyle:setChangeable( lChangeable ) + RETURN Qt_QsciStyle_setChangeable( ::pPtr, lChangeable ) + + +METHOD QsciStyle:changeable() + RETURN Qt_QsciStyle_changeable( ::pPtr ) + + +METHOD QsciStyle:setHotspot( lHotspot ) + RETURN Qt_QsciStyle_setHotspot( ::pPtr, lHotspot ) + + +METHOD QsciStyle:hotspot() + RETURN Qt_QsciStyle_hotspot( ::pPtr ) + + +METHOD QsciStyle:refresh() + RETURN Qt_QsciStyle_refresh( ::pPtr ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/TQsciStyledText.prg b/harbour/contrib/hbqt/hbqscintilla/TQsciStyledText.prg new file mode 100644 index 0000000000..73ff986a3f --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/TQsciStyledText.prg @@ -0,0 +1,91 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009-2010 Pritpal Bedi + * + * Copyright 2009 Marcos Antonio Gambeta + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + +#include "hbclass.ch" + + +CREATE CLASS QsciStyledText INHERIT HbQtObjectHandler + + METHOD new( ... ) + + METHOD text() + METHOD style() + + ENDCLASS + + +METHOD QsciStyledText:new( ... ) + LOCAL p + FOR EACH p IN { ... } + hb_pvalue( p:__enumIndex(), hbqt_ptr( p ) ) + NEXT + ::pPtr := Qt_QsciStyledText( ... ) + RETURN Self + + +METHOD QsciStyledText:text() + RETURN Qt_QsciStyledText_text( ::pPtr ) + + +METHOD QsciStyledText:style() + RETURN Qt_QsciStyledText_style( ::pPtr ) + diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciabstractapis.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciabstractapis.txt new file mode 100644 index 0000000000..a67b44e799 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciabstractapis.txt @@ -0,0 +1,56 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciAbstractAPIs() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qsciabstractapis.html + $ONELINER$ + Creates a new QsciAbstractAPIs object. + $INHERITS$ + + $SYNTAX$ + QsciAbstractAPIs():new( ... ) + QsciAbstractAPIs():from( pPtr_OR_oObj_of_type_QsciAbstractAPIs ) + QsciAbstractAPIs():configure( pPtr_OR_oObj_of_type_QsciAbstractAPIs ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciAbstractAPIs + $METHODS$ + :lexer() -> pQsciLexer + :updateAutoCompletionList( pContext, pList ) -> NIL + :autoCompletionSelected( cSelection ) -> NIL + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciAbstractAPIs.prg + C++ Wrappers : contrib/hbqt/QsciAbstractAPIs.cpp + Library : hb + $SEEALSO$ + + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciapis.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciapis.txt new file mode 100644 index 0000000000..f25b546373 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciapis.txt @@ -0,0 +1,67 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciAPIs() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qsciapis.html + $ONELINER$ + Creates a new QsciAPIs object. + $INHERITS$ + QsciAbstractAPIs + $SYNTAX$ + QsciAPIs():new( ... ) + QsciAPIs():from( pPtr_OR_oObj_of_type_QsciAPIs ) + QsciAPIs():configure( pPtr_OR_oObj_of_type_QsciAPIs ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciAPIs + $METHODS$ + :add( cEntry ) -> NIL + :clear() -> NIL + :load( cFname ) -> lBool + :remove( cEntry ) -> NIL + :prepare() -> NIL + :cancelPreparation() -> NIL + :defaultPreparedName() -> cQString + :isPrepared( cFname ) -> lBool + :loadPrepared( cFname ) -> lBool + :savePrepared( cFname ) -> lBool + :updateAutoCompletionList( pContext, pList ) -> NIL + :autoCompletionSelected( cSel ) -> NIL + :event( pE ) -> lBool + :installedAPIFiles() -> pQStringList + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciAPIs.prg + C++ Wrappers : contrib/hbqt/QsciAPIs.cpp + Library : hb + $SEEALSO$ + QsciAbstractAPIs + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommand.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommand.txt new file mode 100644 index 0000000000..9129a148e5 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommand.txt @@ -0,0 +1,59 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciCommand() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qscicommand.html + $ONELINER$ + Creates a new QsciCommand object. + $INHERITS$ + + $SYNTAX$ + QsciCommand():new( ... ) + QsciCommand():from( pPtr_OR_oObj_of_type_QsciCommand ) + QsciCommand():configure( pPtr_OR_oObj_of_type_QsciCommand ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciCommand + $METHODS$ + :setKey( nKey ) -> NIL + :setAlternateKey( nAltkey ) -> NIL + :key() -> nInt + :alternateKey() -> nInt + :description() -> cQString + :validKey( nKey ) -> lBool + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciCommand.prg + C++ Wrappers : contrib/hbqt/QsciCommand.cpp + Library : hb + $SEEALSO$ + + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommandset.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommandset.txt new file mode 100644 index 0000000000..88e23190c7 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscicommandset.txt @@ -0,0 +1,57 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciCommandSet() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qscicommandset.html + $ONELINER$ + Creates a new QsciCommandSet object. + $INHERITS$ + + $SYNTAX$ + QsciCommandSet():new( ... ) + QsciCommandSet():from( pPtr_OR_oObj_of_type_QsciCommandSet ) + QsciCommandSet():configure( pPtr_OR_oObj_of_type_QsciCommandSet ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciCommandSet + $METHODS$ + :readSettings( pQs, pPrefix ) -> lBool + :writeSettings( pQs, pPrefix ) -> lBool + :clearKeys() -> NIL + :clearAlternateKeys() -> NIL + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciCommandSet.prg + C++ Wrappers : contrib/hbqt/QsciCommandSet.cpp + Library : hb + $SEEALSO$ + + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexer.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexer.txt new file mode 100644 index 0000000000..a1cd237a77 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexer.txt @@ -0,0 +1,97 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciLexer() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qscilexer.html + $ONELINER$ + Creates a new QsciLexer object. + $INHERITS$ + + $SYNTAX$ + QsciLexer():new( ... ) + QsciLexer():from( pPtr_OR_oObj_of_type_QsciLexer ) + QsciLexer():configure( pPtr_OR_oObj_of_type_QsciLexer ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciLexer + $METHODS$ + :language() -> cChar + :lexer() -> cChar + :lexerId() -> nInt + :apis() -> pQsciAbstractAPIs + :autoCompletionFillups() -> cChar + :autoCompletionWordSeparators() -> pQStringList + :autoIndentStyle() -> nInt + :blockEnd( @nStyle ) -> cChar + :blockLookback() -> nInt + :blockStart( @nStyle ) -> cChar + :blockStartKeyword( @nStyle ) -> cChar + :braceStyle() -> nInt + :caseSensitive() -> lBool + :color( nStyle ) -> pQColor + :eolFill( nStyle ) -> lBool + :font( nStyle ) -> pQFont + :indentationGuideView() -> nInt + :keywords( nSet ) -> cChar + :defaultStyle() -> nInt + :description( nStyle ) -> cQString + :paper( nStyle ) -> pQColor + :defaultColor() -> pQColor + :defaultColor_1( nStyle ) -> pQColor + :defaultEolFill( nStyle ) -> lBool + :defaultFont() -> pQFont + :defaultFont_1( nStyle ) -> pQFont + :defaultPaper() -> pQColor + :defaultPaper_1( nStyle ) -> pQColor + :editor() -> pQsciScintilla + :setEditor( pEditor ) -> NIL + :readSettings( pQs, pPrefix ) -> lBool + :refreshProperties() -> NIL + :styleBitsNeeded() -> nInt + :wordCharacters() -> cChar + :writeSettings( pQs, pPrefix ) -> lBool + :setAPIs( pApis ) -> NIL + :setDefaultColor( pC ) -> NIL + :setDefaultFont( pF ) -> NIL + :setDefaultPaper( pC ) -> NIL + :setAutoIndentStyle( nAutoindentstyle ) -> NIL + :setColor( pC, nStyle ) -> NIL + :setEolFill( lEoffill, nStyle ) -> NIL + :setFont( pF, nStyle ) -> NIL + :setPaper( pC, nStyle ) -> NIL + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciLexer.prg + C++ Wrappers : contrib/hbqt/QsciLexer.cpp + Library : hb + $SEEALSO$ + + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexercpp.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexercpp.txt new file mode 100644 index 0000000000..e00b70ecb8 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexercpp.txt @@ -0,0 +1,80 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciLexerCPP() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qscilexercpp.html + $ONELINER$ + Creates a new QsciLexerCPP object. + $INHERITS$ + QsciLexer + $SYNTAX$ + QsciLexerCPP():new( ... ) + QsciLexerCPP():from( pPtr_OR_oObj_of_type_QsciLexerCPP ) + QsciLexerCPP():configure( pPtr_OR_oObj_of_type_QsciLexerCPP ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciLexerCPP + $METHODS$ + :language() -> cChar + :lexer() -> cChar + :autoCompletionWordSeparators() -> pQStringList + :blockEnd( @nStyle ) -> cChar + :blockStart( @nStyle ) -> cChar + :blockStartKeyword( @nStyle ) -> cChar + :braceStyle() -> nInt + :wordCharacters() -> cChar + :defaultColor( nStyle ) -> pQColor + :defaultEolFill( nStyle ) -> lBool + :defaultFont( nStyle ) -> pQFont + :defaultPaper( nStyle ) -> pQColor + :keywords( nSet ) -> cChar + :description( nStyle ) -> cQString + :refreshProperties() -> NIL + :foldAtElse() -> lBool + :foldComments() -> lBool + :foldCompact() -> lBool + :foldPreprocessor() -> lBool + :stylePreprocessor() -> lBool + :setDollarsAllowed( lAllowed ) -> NIL + :dollarsAllowed() -> lBool + :setFoldAtElse( lFold ) -> NIL + :setFoldComments( lFold ) -> NIL + :setFoldCompact( lFold ) -> NIL + :setFoldPreprocessor( lFold ) -> NIL + :setStylePreprocessor( lStyle ) -> NIL + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciLexerCPP.prg + C++ Wrappers : contrib/hbqt/QsciLexerCPP.cpp + Library : hb + $SEEALSO$ + QsciLexer + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexerflagship.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexerflagship.txt new file mode 100644 index 0000000000..408f3409e5 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscilexerflagship.txt @@ -0,0 +1,80 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciLexerFlagship() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qscilexerflagship.html + $ONELINER$ + Creates a new QsciLexerFlagship object. + $INHERITS$ + QsciLexer + $SYNTAX$ + QsciLexerFlagship():new( ... ) + QsciLexerFlagship():from( pPtr_OR_oObj_of_type_QsciLexerFlagship ) + QsciLexerFlagship():configure( pPtr_OR_oObj_of_type_QsciLexerFlagship ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciLexerFlagship + $METHODS$ + :language() -> cChar + :lexer() -> cChar + :autoCompletionWordSeparators() -> pQStringList + :blockEnd( @nStyle ) -> cChar + :blockStart( @nStyle ) -> cChar + :blockStartKeyword( @nStyle ) -> cChar + :braceStyle() -> nInt + :wordCharacters() -> cChar + :defaultColor( nStyle ) -> pQColor + :defaultEolFill( nStyle ) -> lBool + :defaultFont( nStyle ) -> pQFont + :defaultPaper( nStyle ) -> pQColor + :keywords( nSet ) -> cChar + :description( nStyle ) -> cQString + :refreshProperties() -> NIL + :foldAtElse() -> lBool + :foldComments() -> lBool + :foldCompact() -> lBool + :foldPreprocessor() -> lBool + :stylePreprocessor() -> lBool + :setDollarsAllowed( lAllowed ) -> NIL + :dollarsAllowed() -> lBool + :setFoldAtElse( lFold ) -> NIL + :setFoldComments( lFold ) -> NIL + :setFoldCompact( lFold ) -> NIL + :setFoldPreprocessor( lFold ) -> NIL + :setStylePreprocessor( lStyle ) -> NIL + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciLexerFlagship.prg + C++ Wrappers : contrib/hbqt/QsciLexerFlagship.cpp + Library : hb + $SEEALSO$ + QsciLexer + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciscintilla.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciscintilla.txt new file mode 100644 index 0000000000..390b565161 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qsciscintilla.txt @@ -0,0 +1,248 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciScintilla() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qsciscintilla.html + $ONELINER$ + Creates a new QsciScintilla object. + $INHERITS$ + + $SYNTAX$ + QsciScintilla():new( ... ) + QsciScintilla():from( pPtr_OR_oObj_of_type_QsciScintilla ) + QsciScintilla():configure( pPtr_OR_oObj_of_type_QsciScintilla ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciScintilla + $METHODS$ + :annotate( nLine, cText, nStyle ) -> NIL + :annotate_1( nLine, cText, pStyle ) -> NIL + :annotate_2( nLine, pText ) -> NIL + :annotation( nLine ) -> cQString + :annotationDisplay() -> nAnnotationDisplay + :clearAnnotations( nLine ) -> NIL + :autoCompletionCaseSensitivity() -> lBool + :autoCompletionFillupsEnabled() -> lBool + :autoCompletionReplaceWord() -> lBool + :autoCompletionShowSingle() -> lBool + :autoCompletionSource() -> nAutoCompletionSource + :autoCompletionThreshold() -> nInt + :autoIndent() -> lBool + :backspaceUnindents() -> lBool + :beginUndoAction() -> NIL + :braceMatching() -> nBraceMatch + :callTipsStyle() -> nCallTipsStyle + :callTipsVisible() -> nInt + :cancelList() -> NIL + :caseSensitive() -> lBool + :clearFolds() -> NIL + :clearRegisteredImages() -> NIL + :color() -> pQColor + :convertEols( nMode ) -> NIL + :document() -> pQsciDocument + :endUndoAction() -> NIL + :edgeColor() -> pQColor + :edgeColumn() -> nInt + :edgeMode() -> nEdgeMode + :setFont( pF ) -> NIL + :eolMode() -> nEolMode + :eolVisibility() -> lBool + :findFirst( cExpr, lRe, lCs, lWo, lWrap, lForward, nLine, nIndex, lShow ) -> lBool + :findNext() -> lBool + :firstVisibleLine() -> nInt + :folding() -> nFoldStyle + :getCursorPosition( @nLine, @nIndex ) -> NIL + :getSelection( @nLineFrom, @nIndexFrom, @nLineTo, @nIndexTo ) -> NIL + :hasSelectedText() -> lBool + :indentation( nLine ) -> nInt + :indentationGuides() -> lBool + :indentationsUseTabs() -> lBool + :indentationWidth() -> nInt + :isCallTipActive() -> lBool + :isListActive() -> lBool + :isModified() -> lBool + :isReadOnly() -> lBool + :isRedoAvailable() -> lBool + :isUndoAvailable() -> lBool + :isUtf8() -> lBool + :isWordCharacter( cCh ) -> lBool + :lineAt( pPos ) -> nInt + :lineIndexFromPosition( nPosition, @nLine, @nIndex ) -> NIL + :lineLength( nLine ) -> nInt + :lines() -> nInt + :length() -> nInt + :lexer() -> pQsciLexer + :marginLineNumbers( nMargin ) -> lBool + :marginMarkerMask( nMargin ) -> nInt + :marginSensitivity( nMargin ) -> lBool + :marginType( nMargin ) -> nMarginType + :marginWidth( nMargin ) -> nInt + :markerDefine( nSym, nMnr ) -> nInt + :markerDefine_1( cCh, nMnr ) -> nInt + :markerDefine_2( pPm, nMnr ) -> nInt + :markerAdd( nLinenr, nMnr ) -> nInt + :markersAtLine( nLinenr ) -> nUnsigned + :markerDelete( nLinenr, nMnr ) -> NIL + :markerDeleteAll( nMnr ) -> NIL + :markerDeleteHandle( nMhandle ) -> NIL + :markerLine( nMhandle ) -> nInt + :markerFindNext( nLinenr, nMask ) -> nInt + :markerFindPrevious( nLinenr, nMask ) -> nInt + :paper() -> pQColor + :positionFromLineIndex( nLine, nIndex ) -> nInt + :read( pIo ) -> lBool + :recolor( nStart, nEnd ) -> NIL + :registerImage( nId, pPm ) -> NIL + :replace( cReplaceStr ) -> NIL + :resetFoldMarginColors() -> NIL + :setFoldMarginColors( pFore, pBack ) -> NIL + :setAnnotationDisplay( nDisplay ) -> NIL + :setAutoCompletionFillupsEnabled( lEnabled ) -> NIL + :setAutoCompletionFillups( pFillups ) -> NIL + :setAutoCompletionWordSeparators( pSeparators ) -> NIL + :setCallTipsBackgroundColor( pCol ) -> NIL + :setCallTipsForegroundColor( pCol ) -> NIL + :setCallTipsHighlightColor( pCol ) -> NIL + :setCallTipsStyle( nStyle ) -> NIL + :setCallTipsVisible( nNr ) -> NIL + :setDocument( pDocument ) -> NIL + :setEdgeColor( pCol ) -> NIL + :setEdgeColumn( nColnr ) -> NIL + :setEdgeMode( nMode ) -> NIL + :setMarginText( nLine, cText, nStyle ) -> NIL + :setMarginText_1( nLine, cText, pStyle ) -> NIL + :setMarginText_2( nLine, pText ) -> NIL + :setMarginType( nMargin, nType ) -> NIL + :clearMarginText( nLine ) -> NIL + :setMarkerBackgroundColor( pCol, nMnr ) -> NIL + :setMarkerForegroundColor( pCol, nMnr ) -> NIL + :setMatchedBraceBackgroundColor( pCol ) -> NIL + :setMatchedBraceForegroundColor( pCol ) -> NIL + :setUnmatchedBraceBackgroundColor( pCol ) -> NIL + :setUnmatchedBraceForegroundColor( pCol ) -> NIL + :setWrapVisualFlags( nEflag, nSflag, nSindent ) -> NIL + :selectedText() -> cQString + :selectionToEol() -> lBool + :setSelectionToEol( lFilled ) -> NIL + :showUserList( nId, pList ) -> NIL + :standardCommands() -> pQsciCommandSet + :tabIndents() -> lBool + :tabWidth() -> nInt + :text() -> cQString + :text_1( nLine ) -> cQString + :textHeight( nLinenr ) -> nInt + :whitespaceVisibility() -> nWhitespaceVisibility + :wordAtPoint( pPoint ) -> cQString + :wordCharacters() -> cChar + :wrapMode() -> nWrapMode + :write( pIo ) -> lBool + :append( cText ) -> NIL + :autoCompleteFromAll() -> NIL + :autoCompleteFromAPIs() -> NIL + :autoCompleteFromDocument() -> NIL + :callTip() -> NIL + :clear() -> NIL + :copy() -> NIL + :cut() -> NIL + :ensureCursorVisible() -> NIL + :ensureLineVisible( nLine ) -> NIL + :foldAll( lChildren ) -> NIL + :foldLine( nLine ) -> NIL + :indent( nLine ) -> NIL + :insert( cText ) -> NIL + :insertAt( cText, nLine, nIndex ) -> NIL + :moveToMatchingBrace() -> NIL + :paste() -> NIL + :redo() -> NIL + :removeSelectedText() -> NIL + :resetSelectionBackgroundColor() -> NIL + :resetSelectionForegroundColor() -> NIL + :selectAll( lSelect ) -> NIL + :selectToMatchingBrace() -> NIL + :setAutoCompletionCaseSensitivity( lCs ) -> NIL + :setAutoCompletionReplaceWord( lReplace ) -> NIL + :setAutoCompletionShowSingle( lSingle ) -> NIL + :setAutoCompletionSource( nSource ) -> NIL + :setAutoCompletionThreshold( nThresh ) -> NIL + :setAutoIndent( lAutoindent ) -> NIL + :setBraceMatching( nBm ) -> NIL + :setBackspaceUnindents( lUnindent ) -> NIL + :setCaretForegroundColor( pCol ) -> NIL + :setCaretLineBackgroundColor( pCol ) -> NIL + :setCaretLineVisible( lEnable ) -> NIL + :setCaretWidth( nWidth ) -> NIL + :setColor( pC ) -> NIL + :setCursorPosition( nLine, nIndex ) -> NIL + :setEolMode( nMode ) -> NIL + :setEolVisibility( lVisible ) -> NIL + :setFolding( nFold, nMargin ) -> NIL + :setIndentation( nLine, nIndentation ) -> NIL + :setIndentationGuides( lEnable ) -> NIL + :setIndentationGuidesBackgroundColor( pCol ) -> NIL + :setIndentationGuidesForegroundColor( pCol ) -> NIL + :setIndentationsUseTabs( lTabs ) -> NIL + :setIndentationWidth( nWidth ) -> NIL + :setLexer( pLexer ) -> NIL + :setMarginsBackgroundColor( pCol ) -> NIL + :setMarginsFont( pF ) -> NIL + :setMarginsForegroundColor( pCol ) -> NIL + :setMarginLineNumbers( nMargin, lLnrs ) -> NIL + :setMarginMarkerMask( nMargin, nMask ) -> NIL + :setMarginSensitivity( nMargin, lSens ) -> NIL + :setMarginWidth( nMargin, nWidth ) -> NIL + :setMarginWidth_1( nMargin, cS ) -> NIL + :setModified( lM ) -> NIL + :setPaper( pC ) -> NIL + :setReadOnly( lRo ) -> NIL + :setSelection( nLineFrom, nIndexFrom, nLineTo, nIndexTo ) -> NIL + :setSelectionBackgroundColor( pCol ) -> NIL + :setSelectionForegroundColor( pCol ) -> NIL + :setTabIndents( lIndent ) -> NIL + :setTabWidth( nWidth ) -> NIL + :setText( cText ) -> NIL + :setUtf8( lCp ) -> NIL + :setWhitespaceVisibility( nMode ) -> NIL + :setWrapMode( nMode ) -> NIL + :undo() -> NIL + :unindent( nLine ) -> NIL + :zoomIn( nRange ) -> NIL + :zoomIn_1() -> NIL + :zoomOut( nRange ) -> NIL + :zoomOut_1() -> NIL + :zoomTo( nSize ) -> NIL + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciScintilla.prg + C++ Wrappers : contrib/hbqt/QsciScintilla.cpp + Library : hb + $SEEALSO$ + + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyle.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyle.txt new file mode 100644 index 0000000000..e687f7092d --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyle.txt @@ -0,0 +1,73 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciStyle() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qscistyle.html + $ONELINER$ + Creates a new QsciStyle object. + $INHERITS$ + + $SYNTAX$ + QsciStyle():new( ... ) + QsciStyle():from( pPtr_OR_oObj_of_type_QsciStyle ) + QsciStyle():configure( pPtr_OR_oObj_of_type_QsciStyle ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciStyle + $METHODS$ + :style() -> nInt + :setDescription( cDescription ) -> NIL + :description() -> cQString + :setColor( pColor ) -> NIL + :color() -> pQColor + :setPaper( pPaper ) -> NIL + :paper() -> pQColor + :setFont( pFont ) -> NIL + :font() -> pQFont + :setEolFill( lFill ) -> NIL + :eolFill() -> lBool + :setTextCase( nText_case ) -> NIL + :textCase() -> nTextCase + :setVisible( lVisible ) -> NIL + :visible() -> lBool + :setChangeable( lChangeable ) -> NIL + :changeable() -> lBool + :setHotspot( lHotspot ) -> NIL + :hotspot() -> lBool + :refresh() -> NIL + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciStyle.prg + C++ Wrappers : contrib/hbqt/QsciStyle.cpp + Library : hb + $SEEALSO$ + + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyledtext.txt b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyledtext.txt new file mode 100644 index 0000000000..85f5c4278b --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/doc/en/class_qscistyledtext.txt @@ -0,0 +1,55 @@ +/* + * hbQTgen v1.0 - Harbour Callable Wrappers Generator for Qt v4.5.3+ + * Please do not modify this document as it is subject to change in future. + * Pritpal Bedi + */ + +/* $DOC$ + $TEMPLATE$ + Class + $NAME$ + QsciStyledText() + $CATEGORY$ + Harbour Bindings for Qt + $SUBCATEGORY$ + GUI + $EXTERNALLINK$ + http://doc.trolltech.com/4.5/qscistyledtext.html + $ONELINER$ + Creates a new QsciStyledText object. + $INHERITS$ + + $SYNTAX$ + QsciStyledText():new( ... ) + QsciStyledText():from( pPtr_OR_oObj_of_type_QsciStyledText ) + QsciStyledText():configure( pPtr_OR_oObj_of_type_QsciStyledText ) + $ARGUMENTS$ + + $RETURNS$ + An instance of the object of type QsciStyledText + $METHODS$ + :text() -> cQString + :style() -> nInt + + $DESCRIPTION$ + + $EXAMPLES$ + + $TESTS$ + + $STATUS$ + R + $COMPLIANCE$ + Not Clipper Compatible + $PLATFORMS$ + Windows, Linux, MacOS, OS2 + $VERSION$ + 4.5.3 + $FILES$ + Prg Source : contrib/hbqt/TQsciStyledText.prg + C++ Wrappers : contrib/hbqt/QsciStyledText.cpp + Library : hb + $SEEALSO$ + + $END$ + */ diff --git a/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.ch b/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.ch new file mode 100644 index 0000000000..b8829bc3d0 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.ch @@ -0,0 +1,953 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * + * Copyright 2009 Pritpal Bedi + * + * http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ +/* + * EkOnkar + * ( The LORD is ONE ) + * + * QScintilla Headers + * + * Pritpal Bedi + * 22May2010 + */ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ +/*----------------------------------------------------------------------*/ + +#ifndef _QSCINTILLA_CH + +#define INVALID_POSITION -1 +#define SCI_START 2000 +#define SCI_OPTIONAL_START 3000 +#define SCI_LEXER_START 4000 +#define SCI_ADDTEXT 2001 +#define SCI_ADDSTYLEDTEXT 2002 +#define SCI_INSERTTEXT 2003 +#define SCI_CLEARALL 2004 +#define SCI_CLEARDOCUMENTSTYLE 2005 +#define SCI_GETLENGTH 2006 +#define SCI_GETCHARAT 2007 +#define SCI_GETCURRENTPOS 2008 +#define SCI_GETANCHOR 2009 +#define SCI_GETSTYLEAT 2010 +#define SCI_REDO 2011 +#define SCI_SETUNDOCOLLECTION 2012 +#define SCI_SELECTALL 2013 +#define SCI_SETSAVEPOINT 2014 +#define SCI_GETSTYLEDTEXT 2015 +#define SCI_CANREDO 2016 +#define SCI_MARKERLINEFROMHANDLE 2017 +#define SCI_MARKERDELETEHANDLE 2018 +#define SCI_GETUNDOCOLLECTION 2019 +#define SCWS_INVISIBLE 0 +#define SCWS_VISIBLEALWAYS 1 +#define SCWS_VISIBLEAFTERINDENT 2 +#define SCI_GETVIEWWS 2020 +#define SCI_SETVIEWWS 2021 +#define SCI_POSITIONFROMPOINT 2022 +#define SCI_POSITIONFROMPOINTCLOSE 2023 +#define SCI_GOTOLINE 2024 +#define SCI_GOTOPOS 2025 +#define SCI_SETANCHOR 2026 +#define SCI_GETCURLINE 2027 +#define SCI_GETENDSTYLED 2028 +#define SC_EOL_CRLF 0 +#define SC_EOL_CR 1 +#define SC_EOL_LF 2 +#define SCI_CONVERTEOLS 2029 +#define SCI_GETEOLMODE 2030 +#define SCI_SETEOLMODE 2031 +#define SCI_STARTSTYLING 2032 +#define SCI_SETSTYLING 2033 +#define SCI_GETBUFFEREDDRAW 2034 +#define SCI_SETBUFFEREDDRAW 2035 +#define SCI_SETTABWIDTH 2036 +#define SCI_GETTABWIDTH 2121 +#define SC_CP_UTF8 65001 +#define SC_CP_DBCS 1 +#define SCI_SETCODEPAGE 2037 +#define SCI_SETUSEPALETTE 2039 +#define MARKER_MAX 31 +#define SC_MARK_CIRCLE 0 +#define SC_MARK_ROUNDRECT 1 +#define SC_MARK_ARROW 2 +#define SC_MARK_SMALLRECT 3 +#define SC_MARK_SHORTARROW 4 +#define SC_MARK_EMPTY 5 +#define SC_MARK_ARROWDOWN 6 +#define SC_MARK_MINUS 7 +#define SC_MARK_PLUS 8 +#define SC_MARK_VLINE 9 +#define SC_MARK_LCORNER 10 +#define SC_MARK_TCORNER 11 +#define SC_MARK_BOXPLUS 12 +#define SC_MARK_BOXPLUSCONNECTED 13 +#define SC_MARK_BOXMINUS 14 +#define SC_MARK_BOXMINUSCONNECTED 15 +#define SC_MARK_LCORNERCURVE 16 +#define SC_MARK_TCORNERCURVE 17 +#define SC_MARK_CIRCLEPLUS 18 +#define SC_MARK_CIRCLEPLUSCONNECTED 19 +#define SC_MARK_CIRCLEMINUS 20 +#define SC_MARK_CIRCLEMINUSCONNECTED 21 +#define SC_MARK_BACKGROUND 22 +#define SC_MARK_DOTDOTDOT 23 +#define SC_MARK_ARROWS 24 +#define SC_MARK_PIXMAP 25 +#define SC_MARK_FULLRECT 26 +#define SC_MARK_LEFTRECT 27 +#define SC_MARK_AVAILABLE 28 +#define SC_MARK_CHARACTER 10000 +#define SC_MARKNUM_FOLDEREND 25 +#define SC_MARKNUM_FOLDEROPENMID 26 +#define SC_MARKNUM_FOLDERMIDTAIL 27 +#define SC_MARKNUM_FOLDERTAIL 28 +#define SC_MARKNUM_FOLDERSUB 29 +#define SC_MARKNUM_FOLDER 30 +#define SC_MARKNUM_FOLDEROPEN 31 +#define SC_MASK_FOLDERS 0xFE000000 +#define SCI_MARKERDEFINE 2040 +#define SCI_MARKERSETFORE 2041 +#define SCI_MARKERSETBACK 2042 +#define SCI_MARKERADD 2043 +#define SCI_MARKERDELETE 2044 +#define SCI_MARKERDELETEALL 2045 +#define SCI_MARKERGET 2046 +#define SCI_MARKERNEXT 2047 +#define SCI_MARKERPREVIOUS 2048 +#define SCI_MARKERDEFINEPIXMAP 2049 +#define SCI_MARKERADDSET 2466 +#define SCI_MARKERSETALPHA 2476 +#define SC_MARGIN_SYMBOL 0 +#define SC_MARGIN_NUMBER 1 +#define SC_MARGIN_BACK 2 +#define SC_MARGIN_FORE 3 +#define SC_MARGIN_TEXT 4 +#define SC_MARGIN_RTEXT 5 +#define SCI_SETMARGINTYPEN 2240 +#define SCI_GETMARGINTYPEN 2241 +#define SCI_SETMARGINWIDTHN 2242 +#define SCI_GETMARGINWIDTHN 2243 +#define SCI_SETMARGINMASKN 2244 +#define SCI_GETMARGINMASKN 2245 +#define SCI_SETMARGINSENSITIVEN 2246 +#define SCI_GETMARGINSENSITIVEN 2247 +#define STYLE_DEFAULT 32 +#define STYLE_LINENUMBER 33 +#define STYLE_BRACELIGHT 34 +#define STYLE_BRACEBAD 35 +#define STYLE_CONTROLCHAR 36 +#define STYLE_INDENTGUIDE 37 +#define STYLE_CALLTIP 38 +#define STYLE_LASTPREDEFINED 39 +#define STYLE_MAX 255 +#define SC_CHARSET_ANSI 0 +#define SC_CHARSET_DEFAULT 1 +#define SC_CHARSET_BALTIC 186 +#define SC_CHARSET_CHINESEBIG5 136 +#define SC_CHARSET_EASTEUROPE 238 +#define SC_CHARSET_GB2312 134 +#define SC_CHARSET_GREEK 161 +#define SC_CHARSET_HANGUL 129 +#define SC_CHARSET_MAC 77 +#define SC_CHARSET_OEM 255 +#define SC_CHARSET_RUSSIAN 204 +#define SC_CHARSET_CYRILLIC 1251 +#define SC_CHARSET_SHIFTJIS 128 +#define SC_CHARSET_SYMBOL 2 +#define SC_CHARSET_TURKISH 162 +#define SC_CHARSET_JOHAB 130 +#define SC_CHARSET_HEBREW 177 +#define SC_CHARSET_ARABIC 178 +#define SC_CHARSET_VIETNAMESE 163 +#define SC_CHARSET_THAI 222 +#define SC_CHARSET_8859_15 1000 +#define SCI_STYLECLEARALL 2050 +#define SCI_STYLESETFORE 2051 +#define SCI_STYLESETBACK 2052 +#define SCI_STYLESETBOLD 2053 +#define SCI_STYLESETITALIC 2054 +#define SCI_STYLESETSIZE 2055 +#define SCI_STYLESETFONT 2056 +#define SCI_STYLESETEOLFILLED 2057 +#define SCI_STYLERESETDEFAULT 2058 +#define SCI_STYLESETUNDERLINE 2059 +#define SC_CASE_MIXED 0 +#define SC_CASE_UPPER 1 +#define SC_CASE_LOWER 2 +#define SCI_STYLEGETFORE 2481 +#define SCI_STYLEGETBACK 2482 +#define SCI_STYLEGETBOLD 2483 +#define SCI_STYLEGETITALIC 2484 +#define SCI_STYLEGETSIZE 2485 +#define SCI_STYLEGETFONT 2486 +#define SCI_STYLEGETEOLFILLED 2487 +#define SCI_STYLEGETUNDERLINE 2488 +#define SCI_STYLEGETCASE 2489 +#define SCI_STYLEGETCHARACTERSET 2490 +#define SCI_STYLEGETVISIBLE 2491 +#define SCI_STYLEGETCHANGEABLE 2492 +#define SCI_STYLEGETHOTSPOT 2493 +#define SCI_STYLESETCASE 2060 +#define SCI_STYLESETCHARACTERSET 2066 +#define SCI_STYLESETHOTSPOT 2409 +#define SCI_SETSELFORE 2067 +#define SCI_SETSELBACK 2068 +#define SCI_GETSELALPHA 2477 +#define SCI_SETSELALPHA 2478 +#define SCI_GETSELEOLFILLED 2479 +#define SCI_SETSELEOLFILLED 2480 +#define SCI_SETCARETFORE 2069 +#define SCI_ASSIGNCMDKEY 2070 +#define SCI_CLEARCMDKEY 2071 +#define SCI_CLEARALLCMDKEYS 2072 +#define SCI_SETSTYLINGEX 2073 +#define SCI_STYLESETVISIBLE 2074 +#define SCI_GETCARETPERIOD 2075 +#define SCI_SETCARETPERIOD 2076 +#define SCI_SETWORDCHARS 2077 +#define SCI_BEGINUNDOACTION 2078 +#define SCI_ENDUNDOACTION 2079 +#define INDIC_PLAIN 0 +#define INDIC_SQUIGGLE 1 +#define INDIC_TT 2 +#define INDIC_DIAGONAL 3 +#define INDIC_STRIKE 4 +#define INDIC_HIDDEN 5 +#define INDIC_BOX 6 +#define INDIC_ROUNDBOX 7 +#define INDIC_MAX 31 +#define INDIC_CONTAINER 8 +#define INDIC0_MASK 0x20 +#define INDIC1_MASK 0x40 +#define INDIC2_MASK 0x80 +#define INDICS_MASK 0xE0 +#define SCI_INDICSETSTYLE 2080 +#define SCI_INDICGETSTYLE 2081 +#define SCI_INDICSETFORE 2082 +#define SCI_INDICGETFORE 2083 +#define SCI_INDICSETUNDER 2510 +#define SCI_INDICGETUNDER 2511 +#define SCI_SETWHITESPACEFORE 2084 +#define SCI_SETWHITESPACEBACK 2085 +#define SCI_SETSTYLEBITS 2090 +#define SCI_GETSTYLEBITS 2091 +#define SCI_SETLINESTATE 2092 +#define SCI_GETLINESTATE 2093 +#define SCI_GETMAXLINESTATE 2094 +#define SCI_GETCARETLINEVISIBLE 2095 +#define SCI_SETCARETLINEVISIBLE 2096 +#define SCI_GETCARETLINEBACK 2097 +#define SCI_SETCARETLINEBACK 2098 +#define SCI_STYLESETCHANGEABLE 2099 +#define SCI_AUTOCSHOW 2100 +#define SCI_AUTOCCANCEL 2101 +#define SCI_AUTOCACTIVE 2102 +#define SCI_AUTOCPOSSTART 2103 +#define SCI_AUTOCCOMPLETE 2104 +#define SCI_AUTOCSTOPS 2105 +#define SCI_AUTOCSETSEPARATOR 2106 +#define SCI_AUTOCGETSEPARATOR 2107 +#define SCI_AUTOCSELECT 2108 +#define SCI_AUTOCSETCANCELATSTART 2110 +#define SCI_AUTOCGETCANCELATSTART 2111 +#define SCI_AUTOCSETFILLUPS 2112 +#define SCI_AUTOCSETCHOOSESINGLE 2113 +#define SCI_AUTOCGETCHOOSESINGLE 2114 +#define SCI_AUTOCSETIGNORECASE 2115 +#define SCI_AUTOCGETIGNORECASE 2116 +#define SCI_USERLISTSHOW 2117 +#define SCI_AUTOCSETAUTOHIDE 2118 +#define SCI_AUTOCGETAUTOHIDE 2119 +#define SCI_AUTOCSETDROPRESTOFWORD 2270 +#define SCI_AUTOCGETDROPRESTOFWORD 2271 +#define SCI_REGISTERIMAGE 2405 +#define SCI_CLEARREGISTEREDIMAGES 2408 +#define SCI_AUTOCGETTYPESEPARATOR 2285 +#define SCI_AUTOCSETTYPESEPARATOR 2286 +#define SCI_AUTOCSETMAXWIDTH 2208 +#define SCI_AUTOCGETMAXWIDTH 2209 +#define SCI_AUTOCSETMAXHEIGHT 2210 +#define SCI_AUTOCGETMAXHEIGHT 2211 +#define SCI_SETINDENT 2122 +#define SCI_GETINDENT 2123 +#define SCI_SETUSETABS 2124 +#define SCI_GETUSETABS 2125 +#define SCI_SETLINEINDENTATION 2126 +#define SCI_GETLINEINDENTATION 2127 +#define SCI_GETLINEINDENTPOSITION 2128 +#define SCI_GETCOLUMN 2129 +#define SCI_SETHSCROLLBAR 2130 +#define SCI_GETHSCROLLBAR 2131 +#define SC_IV_NONE 0 +#define SC_IV_REAL 1 +#define SC_IV_LOOKFORWARD 2 +#define SC_IV_LOOKBOTH 3 +#define SCI_SETINDENTATIONGUIDES 2132 +#define SCI_GETINDENTATIONGUIDES 2133 +#define SCI_SETHIGHLIGHTGUIDE 2134 +#define SCI_GETHIGHLIGHTGUIDE 2135 +#define SCI_GETLINEENDPOSITION 2136 +#define SCI_GETCODEPAGE 2137 +#define SCI_GETCARETFORE 2138 +#define SCI_GETUSEPALETTE 2139 +#define SCI_GETREADONLY 2140 +#define SCI_SETCURRENTPOS 2141 +#define SCI_SETSELECTIONSTART 2142 +#define SCI_GETSELECTIONSTART 2143 +#define SCI_SETSELECTIONEND 2144 +#define SCI_GETSELECTIONEND 2145 +#define SCI_SETPRINTMAGNIFICATION 2146 +#define SCI_GETPRINTMAGNIFICATION 2147 +#define SC_PRINT_NORMAL 0 +#define SC_PRINT_INVERTLIGHT 1 +#define SC_PRINT_BLACKONWHITE 2 +#define SC_PRINT_COLOURONWHITE 3 +#define SC_PRINT_COLOURONWHITEDEFAULTBG 4 +#define SCI_SETPRINTCOLOURMODE 2148 +#define SCI_GETPRINTCOLOURMODE 2149 +#define SCFIND_WHOLEWORD 2 +#define SCFIND_MATCHCASE 4 +#define SCFIND_WORDSTART 0x00100000 +#define SCFIND_REGEXP 0x00200000 +#define SCFIND_POSIX 0x00400000 +#define SCI_FINDTEXT 2150 +#define SCI_FORMATRANGE 2151 +#define SCI_GETFIRSTVISIBLELINE 2152 +#define SCI_GETLINE 2153 +#define SCI_GETLINECOUNT 2154 +#define SCI_SETMARGINLEFT 2155 +#define SCI_GETMARGINLEFT 2156 +#define SCI_SETMARGINRIGHT 2157 +#define SCI_GETMARGINRIGHT 2158 +#define SCI_GETMODIFY 2159 +#define SCI_SETSEL 2160 +#define SCI_GETSELTEXT 2161 +#define SCI_GETTEXTRANGE 2162 +#define SCI_HIDESELECTION 2163 +#define SCI_POINTXFROMPOSITION 2164 +#define SCI_POINTYFROMPOSITION 2165 +#define SCI_LINEFROMPOSITION 2166 +#define SCI_POSITIONFROMLINE 2167 +#define SCI_LINESCROLL 2168 +#define SCI_SCROLLCARET 2169 +#define SCI_REPLACESEL 2170 +#define SCI_SETREADONLY 2171 +#define SCI_NULL 2172 +#define SCI_CANPASTE 2173 +#define SCI_CANUNDO 2174 +#define SCI_EMPTYUNDOBUFFER 2175 +#define SCI_UNDO 2176 +#define SCI_CUT 2177 +#define SCI_COPY 2178 +#define SCI_PASTE 2179 +#define SCI_CLEAR 2180 +#define SCI_SETTEXT 2181 +#define SCI_GETTEXT 2182 +#define SCI_GETTEXTLENGTH 2183 +#define SCI_GETDIRECTFUNCTION 2184 +#define SCI_GETDIRECTPOINTER 2185 +#define SCI_SETOVERTYPE 2186 +#define SCI_GETOVERTYPE 2187 +#define SCI_SETCARETWIDTH 2188 +#define SCI_GETCARETWIDTH 2189 +#define SCI_SETTARGETSTART 2190 +#define SCI_GETTARGETSTART 2191 +#define SCI_SETTARGETEND 2192 +#define SCI_GETTARGETEND 2193 +#define SCI_REPLACETARGET 2194 +#define SCI_REPLACETARGETRE 2195 +#define SCI_SEARCHINTARGET 2197 +#define SCI_SETSEARCHFLAGS 2198 +#define SCI_GETSEARCHFLAGS 2199 +#define SCI_CALLTIPSHOW 2200 +#define SCI_CALLTIPCANCEL 2201 +#define SCI_CALLTIPACTIVE 2202 +#define SCI_CALLTIPPOSSTART 2203 +#define SCI_CALLTIPSETHLT 2204 +#define SCI_CALLTIPSETBACK 2205 +#define SCI_CALLTIPSETFORE 2206 +#define SCI_CALLTIPSETFOREHLT 2207 +#define SCI_CALLTIPUSESTYLE 2212 +#define SCI_VISIBLEFROMDOCLINE 2220 +#define SCI_DOCLINEFROMVISIBLE 2221 +#define SCI_WRAPCOUNT 2235 +#define SC_FOLDLEVELBASE 0x400 +#define SC_FOLDLEVELWHITEFLAG 0x1000 +#define SC_FOLDLEVELHEADERFLAG 0x2000 +#define SC_FOLDLEVELNUMBERMASK 0x0FFF +#define SCI_SETFOLDLEVEL 2222 +#define SCI_GETFOLDLEVEL 2223 +#define SCI_GETLASTCHILD 2224 +#define SCI_GETFOLDPARENT 2225 +#define SCI_SHOWLINES 2226 +#define SCI_HIDELINES 2227 +#define SCI_GETLINEVISIBLE 2228 +#define SCI_SETFOLDEXPANDED 2229 +#define SCI_GETFOLDEXPANDED 2230 +#define SCI_TOGGLEFOLD 2231 +#define SCI_ENSUREVISIBLE 2232 +#define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002 +#define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004 +#define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008 +#define SC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010 +#define SC_FOLDFLAG_LEVELNUMBERS 0x0040 +#define SCI_SETFOLDFLAGS 2233 +#define SCI_ENSUREVISIBLEENFORCEPOLICY 2234 +#define SCI_SETTABINDENTS 2260 +#define SCI_GETTABINDENTS 2261 +#define SCI_SETBACKSPACEUNINDENTS 2262 +#define SCI_GETBACKSPACEUNINDENTS 2263 +#define SC_TIME_FOREVER 10000000 +#define SCI_SETMOUSEDWELLTIME 2264 +#define SCI_GETMOUSEDWELLTIME 2265 +#define SCI_WORDSTARTPOSITION 2266 +#define SCI_WORDENDPOSITION 2267 +#define SC_WRAP_NONE 0 +#define SC_WRAP_WORD 1 +#define SC_WRAP_CHAR 2 +#define SCI_SETWRAPMODE 2268 +#define SCI_GETWRAPMODE 2269 +#define SC_WRAPVISUALFLAG_NONE 0x0000 +#define SC_WRAPVISUALFLAG_END 0x0001 +#define SC_WRAPVISUALFLAG_START 0x0002 +#define SCI_SETWRAPVISUALFLAGS 2460 +#define SCI_GETWRAPVISUALFLAGS 2461 +#define SC_WRAPVISUALFLAGLOC_DEFAULT 0x0000 +#define SC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001 +#define SC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002 +#define SCI_SETWRAPVISUALFLAGSLOCATION 2462 +#define SCI_GETWRAPVISUALFLAGSLOCATION 2463 +#define SCI_SETWRAPSTARTINDENT 2464 +#define SCI_GETWRAPSTARTINDENT 2465 +#define SC_CACHE_NONE 0 +#define SC_CACHE_CARET 1 +#define SC_CACHE_PAGE 2 +#define SC_CACHE_DOCUMENT 3 +#define SCI_SETLAYOUTCACHE 2272 +#define SCI_GETLAYOUTCACHE 2273 +#define SCI_SETSCROLLWIDTH 2274 +#define SCI_GETSCROLLWIDTH 2275 +#define SCI_SETSCROLLWIDTHTRACKING 2516 +#define SCI_GETSCROLLWIDTHTRACKING 2517 +#define SCI_TEXTWIDTH 2276 +#define SCI_SETENDATLASTLINE 2277 +#define SCI_GETENDATLASTLINE 2278 +#define SCI_TEXTHEIGHT 2279 +#define SCI_SETVSCROLLBAR 2280 +#define SCI_GETVSCROLLBAR 2281 +#define SCI_APPENDTEXT 2282 +#define SCI_GETTWOPHASEDRAW 2283 +#define SCI_SETTWOPHASEDRAW 2284 +#define SCI_TARGETFROMSELECTION 2287 +#define SCI_LINESJOIN 2288 +#define SCI_LINESSPLIT 2289 +#define SCI_SETFOLDMARGINCOLOUR 2290 +#define SCI_SETFOLDMARGINHICOLOUR 2291 +#define SCI_LINEDOWN 2300 +#define SCI_LINEDOWNEXTEND 2301 +#define SCI_LINEUP 2302 +#define SCI_LINEUPEXTEND 2303 +#define SCI_CHARLEFT 2304 +#define SCI_CHARLEFTEXTEND 2305 +#define SCI_CHARRIGHT 2306 +#define SCI_CHARRIGHTEXTEND 2307 +#define SCI_WORDLEFT 2308 +#define SCI_WORDLEFTEXTEND 2309 +#define SCI_WORDRIGHT 2310 +#define SCI_WORDRIGHTEXTEND 2311 +#define SCI_HOME 2312 +#define SCI_HOMEEXTEND 2313 +#define SCI_LINEEND 2314 +#define SCI_LINEENDEXTEND 2315 +#define SCI_DOCUMENTSTART 2316 +#define SCI_DOCUMENTSTARTEXTEND 2317 +#define SCI_DOCUMENTEND 2318 +#define SCI_DOCUMENTENDEXTEND 2319 +#define SCI_PAGEUP 2320 +#define SCI_PAGEUPEXTEND 2321 +#define SCI_PAGEDOWN 2322 +#define SCI_PAGEDOWNEXTEND 2323 +#define SCI_EDITTOGGLEOVERTYPE 2324 +#define SCI_CANCEL 2325 +#define SCI_DELETEBACK 2326 +#define SCI_TAB 2327 +#define SCI_BACKTAB 2328 +#define SCI_NEWLINE 2329 +#define SCI_FORMFEED 2330 +#define SCI_VCHOME 2331 +#define SCI_VCHOMEEXTEND 2332 +#define SCI_ZOOMIN 2333 +#define SCI_ZOOMOUT 2334 +#define SCI_DELWORDLEFT 2335 +#define SCI_DELWORDRIGHT 2336 +#define SCI_DELWORDRIGHTEND 2518 +#define SCI_LINECUT 2337 +#define SCI_LINEDELETE 2338 +#define SCI_LINETRANSPOSE 2339 +#define SCI_LINEDUPLICATE 2404 +#define SCI_LOWERCASE 2340 +#define SCI_UPPERCASE 2341 +#define SCI_LINESCROLLDOWN 2342 +#define SCI_LINESCROLLUP 2343 +#define SCI_DELETEBACKNOTLINE 2344 +#define SCI_HOMEDISPLAY 2345 +#define SCI_HOMEDISPLAYEXTEND 2346 +#define SCI_LINEENDDISPLAY 2347 +#define SCI_LINEENDDISPLAYEXTEND 2348 +#define SCI_HOMEWRAP 2349 +#define SCI_HOMEWRAPEXTEND 2450 +#define SCI_LINEENDWRAP 2451 +#define SCI_LINEENDWRAPEXTEND 2452 +#define SCI_VCHOMEWRAP 2453 +#define SCI_VCHOMEWRAPEXTEND 2454 +#define SCI_LINECOPY 2455 +#define SCI_MOVECARETINSIDEVIEW 2401 +#define SCI_LINELENGTH 2350 +#define SCI_BRACEHIGHLIGHT 2351 +#define SCI_BRACEBADLIGHT 2352 +#define SCI_BRACEMATCH 2353 +#define SCI_GETVIEWEOL 2355 +#define SCI_SETVIEWEOL 2356 +#define SCI_GETDOCPOINTER 2357 +#define SCI_SETDOCPOINTER 2358 +#define SCI_SETMODEVENTMASK 2359 +#define EDGE_NONE 0 +#define EDGE_LINE 1 +#define EDGE_BACKGROUND 2 +#define SCI_GETEDGECOLUMN 2360 +#define SCI_SETEDGECOLUMN 2361 +#define SCI_GETEDGEMODE 2362 +#define SCI_SETEDGEMODE 2363 +#define SCI_GETEDGECOLOUR 2364 +#define SCI_SETEDGECOLOUR 2365 +#define SCI_SEARCHANCHOR 2366 +#define SCI_SEARCHNEXT 2367 +#define SCI_SEARCHPREV 2368 +#define SCI_LINESONSCREEN 2370 +#define SCI_USEPOPUP 2371 +#define SCI_SELECTIONISRECTANGLE 2372 +#define SCI_SETZOOM 2373 +#define SCI_GETZOOM 2374 +#define SCI_CREATEDOCUMENT 2375 +#define SCI_ADDREFDOCUMENT 2376 +#define SCI_RELEASEDOCUMENT 2377 +#define SCI_GETMODEVENTMASK 2378 +#define SCI_SETFOCUS 2380 +#define SCI_GETFOCUS 2381 +#define SCI_SETSTATUS 2382 +#define SCI_GETSTATUS 2383 +#define SCI_SETMOUSEDOWNCAPTURES 2384 +#define SCI_GETMOUSEDOWNCAPTURES 2385 +#define SC_CURSORNORMAL -1 +#define SC_CURSORWAIT 4 +#define SCI_SETCURSOR 2386 +#define SCI_GETCURSOR 2387 +#define SCI_SETCONTROLCHARSYMBOL 2388 +#define SCI_GETCONTROLCHARSYMBOL 2389 +#define SCI_WORDPARTLEFT 2390 +#define SCI_WORDPARTLEFTEXTEND 2391 +#define SCI_WORDPARTRIGHT 2392 +#define SCI_WORDPARTRIGHTEXTEND 2393 +#define VISIBLE_SLOP 0x01 +#define VISIBLE_STRICT 0x04 +#define SCI_SETVISIBLEPOLICY 2394 +#define SCI_DELLINELEFT 2395 +#define SCI_DELLINERIGHT 2396 +#define SCI_SETXOFFSET 2397 +#define SCI_GETXOFFSET 2398 +#define SCI_CHOOSECARETX 2399 +#define SCI_GRABFOCUS 2400 +#define CARET_SLOP 0x01 +#define CARET_STRICT 0x04 +#define CARET_JUMPS 0x10 +#define CARET_EVEN 0x08 +#define SCI_SETXCARETPOLICY 2402 +#define SCI_SETYCARETPOLICY 2403 +#define SCI_SETPRINTWRAPMODE 2406 +#define SCI_GETPRINTWRAPMODE 2407 +#define SCI_SETHOTSPOTACTIVEFORE 2410 +#define SCI_GETHOTSPOTACTIVEFORE 2494 +#define SCI_SETHOTSPOTACTIVEBACK 2411 +#define SCI_GETHOTSPOTACTIVEBACK 2495 +#define SCI_SETHOTSPOTACTIVEUNDERLINE 2412 +#define SCI_GETHOTSPOTACTIVEUNDERLINE 2496 +#define SCI_SETHOTSPOTSINGLELINE 2421 +#define SCI_GETHOTSPOTSINGLELINE 2497 +#define SCI_PARADOWN 2413 +#define SCI_PARADOWNEXTEND 2414 +#define SCI_PARAUP 2415 +#define SCI_PARAUPEXTEND 2416 +#define SCI_POSITIONBEFORE 2417 +#define SCI_POSITIONAFTER 2418 +#define SCI_COPYRANGE 2419 +#define SCI_COPYTEXT 2420 +#define SC_SEL_STREAM 0 +#define SC_SEL_RECTANGLE 1 +#define SC_SEL_LINES 2 +#define SCI_SETSELECTIONMODE 2422 +#define SCI_GETSELECTIONMODE 2423 +#define SCI_GETLINESELSTARTPOSITION 2424 +#define SCI_GETLINESELENDPOSITION 2425 +#define SCI_LINEDOWNRECTEXTEND 2426 +#define SCI_LINEUPRECTEXTEND 2427 +#define SCI_CHARLEFTRECTEXTEND 2428 +#define SCI_CHARRIGHTRECTEXTEND 2429 +#define SCI_HOMERECTEXTEND 2430 +#define SCI_VCHOMERECTEXTEND 2431 +#define SCI_LINEENDRECTEXTEND 2432 +#define SCI_PAGEUPRECTEXTEND 2433 +#define SCI_PAGEDOWNRECTEXTEND 2434 +#define SCI_STUTTEREDPAGEUP 2435 +#define SCI_STUTTEREDPAGEUPEXTEND 2436 +#define SCI_STUTTEREDPAGEDOWN 2437 +#define SCI_STUTTEREDPAGEDOWNEXTEND 2438 +#define SCI_WORDLEFTEND 2439 +#define SCI_WORDLEFTENDEXTEND 2440 +#define SCI_WORDRIGHTEND 2441 +#define SCI_WORDRIGHTENDEXTEND 2442 +#define SCI_SETWHITESPACECHARS 2443 +#define SCI_SETCHARSDEFAULT 2444 +#define SCI_AUTOCGETCURRENT 2445 +#define SCI_ALLOCATE 2446 +#define SCI_TARGETASUTF8 2447 +#define SCI_SETLENGTHFORENCODE 2448 +#define SCI_ENCODEDFROMUTF8 2449 +#define SCI_FINDCOLUMN 2456 +#define SCI_GETCARETSTICKY 2457 +#define SCI_SETCARETSTICKY 2458 +#define SCI_TOGGLECARETSTICKY 2459 +#define SCI_SETPASTECONVERTENDINGS 2467 +#define SCI_GETPASTECONVERTENDINGS 2468 +#define SCI_SELECTIONDUPLICATE 2469 +#define SC_ALPHA_TRANSPARENT 0 +#define SC_ALPHA_OPAQUE 255 +#define SC_ALPHA_NOALPHA 256 +#define SCI_SETCARETLINEBACKALPHA 2470 +#define SCI_GETCARETLINEBACKALPHA 2471 +#define CARETSTYLE_INVISIBLE 0 +#define CARETSTYLE_LINE 1 +#define CARETSTYLE_BLOCK 2 +#define SCI_SETCARETSTYLE 2512 +#define SCI_GETCARETSTYLE 2513 +#define SCI_SETINDICATORCURRENT 2500 +#define SCI_GETINDICATORCURRENT 2501 +#define SCI_SETINDICATORVALUE 2502 +#define SCI_GETINDICATORVALUE 2503 +#define SCI_INDICATORFILLRANGE 2504 +#define SCI_INDICATORCLEARRANGE 2505 +#define SCI_INDICATORALLONFOR 2506 +#define SCI_INDICATORVALUEAT 2507 +#define SCI_INDICATORSTART 2508 +#define SCI_INDICATOREND 2509 +#define SCI_SETPOSITIONCACHE 2514 +#define SCI_GETPOSITIONCACHE 2515 +#define SCI_COPYALLOWLINE 2519 +#define SCI_GETCHARACTERPOINTER 2520 +#define SCI_SETKEYSUNICODE 2521 +#define SCI_GETKEYSUNICODE 2522 +#define SCI_INDICSETALPHA 2523 +#define SCI_INDICGETALPHA 2524 +#define SCI_SETEXTRAASCENT 2525 +#define SCI_GETEXTRAASCENT 2526 +#define SCI_SETEXTRADESCENT 2527 +#define SCI_GETEXTRADESCENT 2528 +#define SCI_MARKERSYMBOLDEFINED 2529 +#define SCI_MARGINSETTEXT 2530 +#define SCI_MARGINGETTEXT 2531 +#define SCI_MARGINSETSTYLE 2532 +#define SCI_MARGINGETSTYLE 2533 +#define SCI_MARGINSETSTYLES 2534 +#define SCI_MARGINGETSTYLES 2535 +#define SCI_MARGINTEXTCLEARALL 2536 +#define SCI_MARGINSETSTYLEOFFSET 2537 +#define SCI_MARGINGETSTYLEOFFSET 2538 +#define SCI_ANNOTATIONSETTEXT 2540 +#define SCI_ANNOTATIONGETTEXT 2541 +#define SCI_ANNOTATIONSETSTYLE 2542 +#define SCI_ANNOTATIONGETSTYLE 2543 +#define SCI_ANNOTATIONSETSTYLES 2544 +#define SCI_ANNOTATIONGETSTYLES 2545 +#define SCI_ANNOTATIONGETLINES 2546 +#define SCI_ANNOTATIONCLEARALL 2547 +#define ANNOTATION_HIDDEN 0 +#define ANNOTATION_STANDARD 1 +#define ANNOTATION_BOXED 2 +#define SCI_ANNOTATIONSETVISIBLE 2548 +#define SCI_ANNOTATIONGETVISIBLE 2549 +#define SCI_ANNOTATIONSETSTYLEOFFSET 2550 +#define SCI_ANNOTATIONGETSTYLEOFFSET 2551 +#define UNDO_MAY_COALESCE 1 +#define SCI_ADDUNDOACTION 2560 +#define SCI_STARTRECORD 3001 +#define SCI_STOPRECORD 3002 +#define SCI_SETLEXER 4001 +#define SCI_GETLEXER 4002 +#define SCI_COLOURISE 4003 +#define SCI_SETPROPERTY 4004 +#define KEYWORDSET_MAX 8 +#define SCI_SETKEYWORDS 4005 +#define SCI_SETLEXERLANGUAGE 4006 +#define SCI_LOADLEXERLIBRARY 4007 +#define SCI_GETPROPERTY 4008 +#define SCI_GETPROPERTYEXPANDED 4009 +#define SCI_GETPROPERTYINT 4010 +#define SCI_GETSTYLEBITSNEEDED 4011 +#define SC_MOD_INSERTTEXT 0x1 +#define SC_MOD_DELETETEXT 0x2 +#define SC_MOD_CHANGESTYLE 0x4 +#define SC_MOD_CHANGEFOLD 0x8 +#define SC_PERFORMED_USER 0x10 +#define SC_PERFORMED_UNDO 0x20 +#define SC_PERFORMED_REDO 0x40 +#define SC_MULTISTEPUNDOREDO 0x80 +#define SC_LASTSTEPINUNDOREDO 0x100 +#define SC_MOD_CHANGEMARKER 0x200 +#define SC_MOD_BEFOREINSERT 0x400 +#define SC_MOD_BEFOREDELETE 0x800 +#define SC_MULTILINEUNDOREDO 0x1000 +#define SC_STARTACTION 0x2000 +#define SC_MOD_CHANGEINDICATOR 0x4000 +#define SC_MOD_CHANGELINESTATE 0x8000 +#define SC_MOD_CHANGEMARGIN 0x10000 +#define SC_MOD_CHANGEANNOTATION 0x20000 +#define SC_MOD_CONTAINER 0x40000 +#define SC_MODEVENTMASKALL 0x7FFFF +#define SCEN_CHANGE 768 +#define SCEN_SETFOCUS 512 +#define SCEN_KILLFOCUS 256 +#define SCK_DOWN 300 +#define SCK_UP 301 +#define SCK_LEFT 302 +#define SCK_RIGHT 303 +#define SCK_HOME 304 +#define SCK_END 305 +#define SCK_PRIOR 306 +#define SCK_NEXT 307 +#define SCK_DELETE 308 +#define SCK_INSERT 309 +#define SCK_ESCAPE 7 +#define SCK_BACK 8 +#define SCK_TAB 9 +#define SCK_RETURN 13 +#define SCK_ADD 310 +#define SCK_SUBTRACT 311 +#define SCK_DIVIDE 312 +#define SCK_WIN 313 +#define SCK_RWIN 314 +#define SCK_MENU 315 +#define SCMOD_NORM 0 +#define SCMOD_SHIFT 1 +#define SCMOD_CTRL 2 +#define SCMOD_ALT 4 +#define SCN_STYLENEEDED 2000 +#define SCN_CHARADDED 2001 +#define SCN_SAVEPOINTREACHED 2002 +#define SCN_SAVEPOINTLEFT 2003 +#define SCN_MODIFYATTEMPTRO 2004 +#define SCN_KEY 2005 +#define SCN_DOUBLECLICK 2006 +#define SCN_UPDATEUI 2007 +#define SCN_MODIFIED 2008 +#define SCN_MACRORECORD 2009 +#define SCN_MARGINCLICK 2010 +#define SCN_NEEDSHOWN 2011 +#define SCN_PAINTED 2013 +#define SCN_USERLISTSELECTION 2014 +#define SCN_URIDROPPED 2015 +#define SCN_DWELLSTART 2016 +#define SCN_DWELLEND 2017 +#define SCN_ZOOM 2018 +#define SCN_HOTSPOTCLICK 2019 +#define SCN_HOTSPOTDOUBLECLICK 2020 +#define SCN_CALLTIPCLICK 2021 +#define SCN_AUTOCSELECTION 2022 +#define SCN_INDICATORCLICK 2023 +#define SCN_INDICATORRELEASE 2024 +#define SCN_AUTOCCANCELLED 2025 +#define SCN_AUTOCCHARDELETED 2026 + + +// enum generic +#define QsciScintilla_AiMaintain 0x01 +#define QsciScintilla_AiOpening 0x02 +#define QsciScintilla_AiClosing 0x04 + +// enum AnnotationDisplay +#define QsciScintilla_AnnotationHidden ANNOTATION_HIDDEN +#define QsciScintilla_AnnotationStandard ANNOTATION_STANDARD +#define QsciScintilla_AnnotationBoxed ANNOTATION_BOXED + +// enum AutoCompletionSource +#define QsciScintilla_AcsNone 0 +#define QsciScintilla_AcsAll 1 +#define QsciScintilla_AcsDocument 2 +#define QsciScintilla_AcsAPIs 3 + +// enum BraceMatch +#define QsciScintilla_NoBraceMatch 0 +#define QsciScintilla_StrictBraceMatch 1 +#define QsciScintilla_SloppyBraceMatch 2 + +// enum CallTipsStyle +#define QsciScintilla_CallTipsNone 0 +#define QsciScintilla_CallTipsNoContext 1 +#define QsciScintilla_CallTipsNoAutoCompletionContext 2 +#define QsciScintilla_CallTipsContext 3 + +// enum EdgeMode +#define QsciScintilla_EdgeNone EDGE_NONE +#define QsciScintilla_EdgeLine EDGE_LINE +#define QsciScintilla_EdgeBackground EDGE_BACKGROUND + +// enum EolMode +#define QsciScintilla_EolWindows SC_EOL_CRLF +#define QsciScintilla_EolUnix SC_EOL_LF +#define QsciScintilla_EolMac SC_EOL_CR + +// enum FoldStyle +#define QsciScintilla_NoFoldStyle 0 +#define QsciScintilla_PlainFoldStyle 1 +#define QsciScintilla_CircledFoldStyle 2 +#define QsciScintilla_BoxedFoldStyle 3 +#define QsciScintilla_CircledTreeFoldStyle 4 +#define QsciScintilla_BoxedTreeFoldStyle 5 + +// enum MarginType +#define QsciScintilla_SymbolMargin SC_MARGIN_SYMBOL +#define QsciScintilla_SymbolMarginDefaultForegroundColor SC_MARGIN_FORE +#define QsciScintilla_SymbolMarginDefaultBackgroundColor SC_MARGIN_BACK +#define QsciScintilla_NumberMargin SC_MARGIN_NUMBER +#define QsciScintilla_TextMargin SC_MARGIN_TEXT +#define QsciScintilla_TextMarginRightJustified SC_MARGIN_RTEXT + +// enum MarkerSymbol +#define QsciScintilla_Circle SC_MARK_CIRCLE +#define QsciScintilla_Rectangle SC_MARK_ROUNDRECT +#define QsciScintilla_RightTriangle SC_MARK_ARROW +#define QsciScintilla_SmallRectangle SC_MARK_SMALLRECT +#define QsciScintilla_RightArrow SC_MARK_SHORTARROW +#define QsciScintilla_Invisible SC_MARK_EMPTY +#define QsciScintilla_DownTriangle SC_MARK_ARROWDOWN +#define QsciScintilla_Minus SC_MARK_MINUS +#define QsciScintilla_Plus SC_MARK_PLUS +#define QsciScintilla_VerticalLine SC_MARK_VLINE +#define QsciScintilla_BottomLeftCorner SC_MARK_LCORNER +#define QsciScintilla_LeftSideSplitter SC_MARK_TCORNER +#define QsciScintilla_BoxedPlus SC_MARK_BOXPLUS +#define QsciScintilla_BoxedPlusConnected SC_MARK_BOXPLUSCONNECTED +#define QsciScintilla_BoxedMinus SC_MARK_BOXMINUS +#define QsciScintilla_BoxedMinusConnected SC_MARK_BOXMINUSCONNECTED +#define QsciScintilla_RoundedBottomLeftCorner SC_MARK_LCORNERCURVE +#define QsciScintilla_LeftSideRoundedSplitter SC_MARK_TCORNERCURVE +#define QsciScintilla_CircledPlus SC_MARK_CIRCLEPLUS +#define QsciScintilla_CircledPlusConnected SC_MARK_CIRCLEPLUSCONNECTED +#define QsciScintilla_CircledMinus SC_MARK_CIRCLEMINUS +#define QsciScintilla_CircledMinusConnected SC_MARK_CIRCLEMINUSCONNECTED +#define QsciScintilla_Background SC_MARK_BACKGROUND +#define QsciScintilla_ThreeDots SC_MARK_DOTDOTDOT +#define QsciScintilla_ThreeRightArrows SC_MARK_ARROWS + +// enum WhitespaceVisibility +#define QsciScintilla_WsInvisible SCWS_INVISIBLE +#define QsciScintilla_WsVisible SCWS_VISIBLEALWAYS +#define QsciScintilla_WsVisibleAfterIndent SCWS_VISIBLEAFTERINDENT + +// enum WrapMode +#define QsciScintilla_WrapNone SC_WRAP_NONE +#define QsciScintilla_WrapWord SC_WRAP_WORD +#define QsciScintilla_WrapCharacter SC_WRAP_CHAR + +// enum WrapVisualFlag +#define QsciScintilla_WrapFlagNone 0 +#define QsciScintilla_WrapFlagByText 1 +#define QsciScintilla_WrapFlagByBorder 2 + +/* LexFlagship Syntax Identifiers */ +#define SCE_FS_DEFAULT 0 +#define SCE_FS_COMMENT 1 +#define SCE_FS_COMMENTLINE 2 +#define SCE_FS_COMMENTDOC 3 +#define SCE_FS_COMMENTLINEDOC 4 +#define SCE_FS_COMMENTDOCKEYWORD 5 +#define SCE_FS_COMMENTDOCKEYWORDERROR 6 +#define SCE_FS_KEYWORD 7 +#define SCE_FS_KEYWORD2 8 +#define SCE_FS_KEYWORD3 9 +#define SCE_FS_KEYWORD4 10 +#define SCE_FS_NUMBER 11 +#define SCE_FS_STRING 12 +#define SCE_FS_PREPROCESSOR 13 +#define SCE_FS_OPERATOR 14 +#define SCE_FS_IDENTIFIER 15 +#define SCE_FS_DATE 16 +#define SCE_FS_STRINGEOL 17 +#define SCE_FS_CONSTANT 18 +#define SCE_FS_WORDOPERATOR 19 +#define SCE_FS_DISABLEDCODE 20 +#define SCE_FS_DEFAULT_C 21 +#define SCE_FS_COMMENTDOC_C 22 +#define SCE_FS_COMMENTLINEDOC_C 23 +#define SCE_FS_KEYWORD_C 24 +#define SCE_FS_KEYWORD2_C 25 +#define SCE_FS_NUMBER_C 26 +#define SCE_FS_STRING_C 27 +#define SCE_FS_PREPROCESSOR_C 28 +#define SCE_FS_OPERATOR_C 29 +#define SCE_FS_IDENTIFIER_C 30 +#define SCE_FS_STRINGEOL_C 31 +#define SCE_FS_BRACE 32 + + #define _QSCINTILLA_CH +#endif \ No newline at end of file diff --git a/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.hbp b/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.hbp new file mode 100644 index 0000000000..f0b5f4ad18 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.hbp @@ -0,0 +1,58 @@ +-3rd=hbide_version=1.0 +-3rd=hbide_type=Lib +-3rd=hbide_title=qscintilla +-3rd=hbide_location=C:\harbour\contrib\hbqt\qscintilla\ +-3rd=hbide_workingfolder= +-3rd=hbide_destinationfolder= +-3rd=hbide_output=qscintilla +-3rd=hbide_launchparams= +-3rd=hbide_launchprogram= +-3rd=hbide_backupfolder= +-3rd=hbide_xhb=NO +-3rd=hbide_xpp=NO +-3rd=hbide_clp=NO + +-info +-trace +-inc +-w2 +-es2 +-hblib +-incpath=../ +-incpath=${HB_WITH_QSCINTILLA}/qt +-incpath=${HB_WITH_QT} +-incpath=${HB_WITH_QT}/QtCore +-incpath=${HB_WITH_QT}/QtGui + +-ohbqscintilla + +-plugin=../../../utils/hbmk2/examples/plug_moc.prg + +-pi=hbqt_hbqsciscintilla.h + +hbqt_hbqsciscintilla.cpp + +HBQsciScintilla.cpp +QsciScintilla.cpp +QsciLexer.cpp +QsciLexerCPP.cpp +QsciLexerFlagship.cpp +QsciAbstractAPIs.cpp +QsciAPIs.cpp +QsciDocument.cpp +QsciStyledText.cpp +QsciCommand.cpp +QsciCommandSet.cpp + +THBQsciScintilla.prg +TQsciScintilla.prg +TQsciLexer.prg +TQsciLexerCPP.prg +TQsciLexerFlagship.prg +TQsciAbstractAPIs.prg +TQsciAPIs.prg +TQsciDocument.prg +TQsciStyle.prg +TQsciStyledText.prg +TQsciCommand.prg +TQsciCommandSet.prg diff --git a/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.qtp b/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.qtp new file mode 100644 index 0000000000..71176409de --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/hbqscintilla.qtp @@ -0,0 +1,29 @@ +; +; $Id$ +; + +; +; Harbour Source Wrapper Generator's Project File for QT v4.5 +; +; Pritpal Bedi +; + +-I=qth + +-O= + +-D=doc + +HBQsciScintilla.qth + +QsciAbstractAPIs.qth +QsciAPIs.qth +QsciCommand.qth +QsciCommandSet.qth +QsciDocument.qth +QsciLexer.qth +QsciLexerCPP.qth +QsciLexerFlagship.qth +QsciScintilla.qth +QsciStyle.qth +QsciStyledText.qth diff --git a/harbour/contrib/hbqt/hbqscintilla/hbqt_garbage.h b/harbour/contrib/hbqt/hbqscintilla/hbqt_garbage.h new file mode 100644 index 0000000000..a5113cb97b --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/hbqt_garbage.h @@ -0,0 +1,36 @@ +/* + * $Id$ + */ + +/* -------------------------------------------------------------------- */ +/* WARNING: Automatically generated source file. DO NOT EDIT! */ +/* Instead, edit corresponding .qth file, */ +/* or the generator tool itself, and run regenarate. */ +/* -------------------------------------------------------------------- */ + +extern QT_G_FUNC( hbqt_gcRelease_HBQsciScintilla ); +extern QT_G_FUNC( hbqt_gcRelease_QsciAbstractAPIs ); +extern QT_G_FUNC( hbqt_gcRelease_QsciAPIs ); +extern QT_G_FUNC( hbqt_gcRelease_QsciCommand ); +extern QT_G_FUNC( hbqt_gcRelease_QsciCommandSet ); +extern QT_G_FUNC( hbqt_gcRelease_QsciDocument ); +extern QT_G_FUNC( hbqt_gcRelease_QsciLexer ); +extern QT_G_FUNC( hbqt_gcRelease_QsciLexerCPP ); +extern QT_G_FUNC( hbqt_gcRelease_QsciLexerFlagship ); +extern QT_G_FUNC( hbqt_gcRelease_QsciScintilla ); +extern QT_G_FUNC( hbqt_gcRelease_QsciStyle ); +extern QT_G_FUNC( hbqt_gcRelease_QsciStyledText ); + +extern void * hbqt_gcAllocate_HBQsciScintilla( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciAbstractAPIs( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciAPIs( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciCommand( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciCommandSet( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciDocument( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciLexer( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciLexerCPP( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciLexerFlagship( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciScintilla( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciStyle( void * pObj, bool bNew ); +extern void * hbqt_gcAllocate_QsciStyledText( void * pObj, bool bNew ); + diff --git a/harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp b/harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp new file mode 100644 index 0000000000..0643dd8c2e --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.cpp @@ -0,0 +1,113 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * Harbour-Qt wrapper generator. + * + * Copyright 2010 Pritpal Bedi + * Copyright 2009 Gancov Kostya + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + +#include "hbqt.h" + +#include "hbapiitm.h" +#include "hbthread.h" +#include "hbvm.h" + +#if QT_VERSION >= 0x040500 + +#include "hbqt_hbqsciscintilla.h" + +/*----------------------------------------------------------------------*/ + +HBQsciScintilla::HBQsciScintilla( QWidget * parent ) : QsciScintilla( parent ) +{ +} +HBQsciScintilla::~HBQsciScintilla() +{ +} +void HBQsciScintilla::keyPressEvent( QKeyEvent * event ) +{ + switch( event->key() ) + { + case Qt::Key_Space: + if( event->modifiers() & Qt::ControlModifier ) + { + this->autoCompleteFromAPIs(); + return; + } + break; + case Qt::Key_Return: + if( event->modifiers() & Qt::ControlModifier ) + { + this->autoCompleteFromDocument(); + } + break; + case Qt::Key_ParenLeft: + if( this->isVisible() ) + { + this->callTip(); + } + break; + } + QsciScintilla::keyPressEvent( event ); +} + +void HBQsciScintilla::focusInEvent( QFocusEvent * event ) +{ + parentWidget()->setFocusProxy( this ); + QsciScintilla::focusInEvent( event ); +} + +void HBQsciScintilla::focusOutEvent( QFocusEvent * event ) +{ + cancelList(); + QsciScintilla::focusOutEvent( event ); +} + +/*----------------------------------------------------------------------*/ +#endif diff --git a/harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h b/harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h new file mode 100644 index 0000000000..8d1e25eaa3 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/hbqt_hbqsciscintilla.h @@ -0,0 +1,89 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT wrapper main header + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ + +#ifndef HBQT_HBQSCISCINTILLA_H + #define HBQT_HBQSCISCINTILLA_H + +#include "hbapiitm.h" + +#include +#include + +#include + +class QsciScintilla; + +class HBQsciScintilla : public QsciScintilla +{ + Q_OBJECT + +public: + HBQsciScintilla( QWidget * parent = 0 ); + ~HBQsciScintilla(); + +protected: + void keyPressEvent( QKeyEvent * event ); + void focusInEvent( QFocusEvent * event ); + void focusOutEvent( QFocusEvent * event ); + #if 0 + bool event( QEvent * event ); + void resizeEvent( QResizeEvent * event ); + void mouseDoubleClickEvent( QMouseEvent * event ); + void mousePressEvent( QMouseEvent * event ); + void mouseReleaseEvent( QMouseEvent * event ); + void mouseMoveEvent( QMouseEvent * event ); + void keyReleaseEvent( QKeyEvent * event ); + #endif +}; + +/*----------------------------------------------------------------------*/ +#endif \ No newline at end of file diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth b/harbour/contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth new file mode 100644 index 0000000000..34fc172a22 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/HBQsciScintilla.qth @@ -0,0 +1,94 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + Header File to Generate QT Wrapper Sources + + + +QObject = Yes +Inherits = QsciScintilla +Type = +New = +Folder = qscintilla + + + + +#include "hbqt_hbqsciscintilla.h" +#include "hbqt_garbage.h" + + +/* + * + */ +HB_FUNC( QT_HBQSCISCINTILLA ) +{ + hb_retptr( new HBQsciScintilla( hbqt_par_QWidget( 1 ) ) ); +} + + + + + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth new file mode 100644 index 0000000000..db75d1c1c5 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciAPIs.qth @@ -0,0 +1,115 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QsciAbstractAPIs +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciAPIs (QsciLexer *lexer) + * virtual ~QsciAPIs () + * + */ +HB_FUNC( QT_QSCIAPIS ) +{ + hb_retptr( new QsciAPIs( hbqt_par_QsciLexer( 1 ) ) ); +} + + + + + + +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 &fname=QString()) const +bool loadPrepared (const QString &fname=QString()) +bool savePrepared (const QString &fname=QString()) const +virtual void updateAutoCompletionList (const QStringList &context, QStringList &list) +virtual void autoCompletionSelected (const QString &sel) +virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts) +virtual bool event (QEvent *e) +QStringList installedAPIFiles () const + + + + + + +void apiPreparationCancelled () +void apiPreparationStarted () +void apiPreparationFinished () + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth new file mode 100644 index 0000000000..c01c77b9b5 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciAbstractAPIs.qth @@ -0,0 +1,101 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciAbstractAPIs (QsciLexer *lexer) + * virtual ~QsciAbstractAPIs () + * + */ +HB_FUNC( QT_QSCIABSTRACTAPIS ) +{ + +} + + + + + + +QsciLexer * lexer () const +virtual void updateAutoCompletionList (const QStringList &context, QStringList &list)=0 +virtual void autoCompletionSelected (const QString &selection) +virtual QStringList callTips (const QStringList &context, int commas, QsciScintilla::CallTipsStyle style, QList< int > &shifts)=0 + + + + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciCommand.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciCommand.qth new file mode 100644 index 0000000000..01ee0f3053 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciCommand.qth @@ -0,0 +1,102 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * + * + */ +HB_FUNC( QT_QSCICOMMAND ) +{ + +} + + + + + + +void setKey (int key) +void setAlternateKey (int altkey) +int key () const +int alternateKey () const +QString description () const +bool validKey (int key) + + + + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth new file mode 100644 index 0000000000..b8338d63ec --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciCommandSet.qth @@ -0,0 +1,101 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * + * + */ +HB_FUNC( QT_QSCICOMMANDSET ) +{ + //hb_retptr( new QsciCommandSet() ); +} + + + + + + +bool readSettings (QSettings &qs, const char *prefix="/Scintilla") +bool writeSettings (QSettings &qs, const char *prefix="/Scintilla") +QList< QsciCommand * > & commands () +void clearKeys () +void clearAlternateKeys () + + + + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciDocument.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciDocument.qth new file mode 100644 index 0000000000..f5456db117 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciDocument.qth @@ -0,0 +1,104 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciDocument () + * QsciDocument (const QsciDocument &) + * + */ +HB_FUNC( QT_QSCIDOCUMENT ) +{ + if( HB_ISPOINTER( 1 ) ) + { + hb_retptr( new QsciDocument( *hbqt_par_QsciDocument( 1 ) ) ); + } + else + { + hb_retptr( new QsciDocument() ); + } +} + + + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexer.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexer.qth new file mode 100644 index 0000000000..7968fa49ec --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexer.qth @@ -0,0 +1,149 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = +Type = +New = +Folder = hbqscintilla +Destructor = no + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciLexer (QObject *parent=0) + * virtual ~QsciLexer () + * + */ +HB_FUNC( QT_QSCILEXER ) +{ + +} + + + + + + +virtual const char * language () const =0 +virtual const char * lexer () const +virtual int lexerId () const +QsciAbstractAPIs * apis () const +virtual const char * autoCompletionFillups () const +virtual QStringList autoCompletionWordSeparators () const +int autoIndentStyle () +virtual const char * blockEnd (int *style=0) const +virtual int blockLookback () const +virtual const char * blockStart (int *style=0) const +virtual const char * blockStartKeyword (int *style=0) const +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 int defaultStyle () 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 +QsciScintilla * editor () const +virtual void setEditor (QsciScintilla *editor) +bool readSettings (QSettings &qs, const char *prefix="/Scintilla") +virtual void refreshProperties () +virtual int styleBitsNeeded () const +virtual const char * wordCharacters () const +bool writeSettings (QSettings &qs, const char *prefix="/Scintilla") const + +void setAPIs (QsciAbstractAPIs *apis) +void setDefaultColor (const QColor &c) +void setDefaultFont (const QFont &f) +void setDefaultPaper (const QColor &c) + + + + +virtual void setAutoIndentStyle (int autoindentstyle) +virtual void setColor (const QColor &c, int style=-1) +virtual void setEolFill (bool eoffill, int style=-1) +virtual void setFont (const QFont &f, int style=-1) +virtual void setPaper (const QColor &c, int style=-1) + + + +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) + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth new file mode 100644 index 0000000000..2028898586 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerCPP.qth @@ -0,0 +1,148 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QsciLexer +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciLexerCPP (QObject *parent=0, bool caseInsensitiveKeywords=false) + * virtual ~QsciLexerCPP () + * + */ +HB_FUNC( QT_QSCILEXERCPP ) +{ + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + hb_retptr( new QsciLexerCPP( hbqt_par_QObject( 1 ) ) ); + } + else if( hb_pcount() == 1 && HB_ISLOG( 1 ) ) + { + hb_retptr( new QsciLexerCPP( 0, hb_parl( 1 ) ) ); + } + else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) ) + { + hb_retptr( new QsciLexerCPP( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) ); + } + else + { + hb_retptr( new QsciLexerCPP() ); + } +} + + + +enum { + Default = 0, Comment = 1, CommentLine = 2, + CommentDoc = 3, Number = 4, Keyword = 5, + DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8, + PreProcessor = 9, Operator = 10, Identifier = 11, + UnclosedString = 12, VerbatimString = 13, Regex = 14, + CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17, + CommentDocKeywordError = 18, GlobalClass = 19 +} + + + +const char * language () const +const char * lexer () const +QStringList autoCompletionWordSeparators () const +const char * blockEnd (int *style=0) const +const char * blockStart (int *style=0) const +const char * blockStartKeyword (int *style=0) const +int braceStyle () const +const char * wordCharacters () 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 foldAtElse () const +bool foldComments () const +bool foldCompact () const +bool foldPreprocessor () const +bool stylePreprocessor () const +void setDollarsAllowed (bool allowed) +bool dollarsAllowed () const + + + +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) + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth new file mode 100644 index 0000000000..62bed5e664 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciLexerFlagship.qth @@ -0,0 +1,148 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = QsciLexer +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciLexerFlagship (QObject *parent=0, bool caseInsensitiveKeywords=false) + * virtual ~QsciLexerFlagship () + * + */ +HB_FUNC( QT_QSCILEXERFLAGSHIP ) +{ + if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) + { + hb_retptr( new QsciLexerFlagship( hbqt_par_QObject( 1 ) ) ); + } + else if( hb_pcount() == 1 && HB_ISLOG( 1 ) ) + { + hb_retptr( new QsciLexerFlagship( 0, hb_parl( 1 ) ) ); + } + else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISLOG( 2 ) ) + { + hb_retptr( new QsciLexerFlagship( hbqt_par_QObject( 1 ), hb_parl( 2 ) ) ); + } + else + { + hb_retptr( new QsciLexerFlagship() ); + } +} + + + +enum { + Default = 0, Comment = 1, CommentLine = 2, + CommentDoc = 3, Number = 4, Keyword = 5, + DoubleQuotedString = 6, SingleQuotedString = 7, UUID = 8, + PreProcessor = 9, Operator = 10, Identifier = 11, + UnclosedString = 12, VerbatimString = 13, Regex = 14, + CommentLineDoc = 15, KeywordSet2 = 16, CommentDocKeyword = 17, + CommentDocKeywordError = 18, GlobalClass = 19 +} + + + +const char * language () const +const char * lexer () const +QStringList autoCompletionWordSeparators () const +const char * blockEnd (int *style=0) const +const char * blockStart (int *style=0) const +const char * blockStartKeyword (int *style=0) const +int braceStyle () const +const char * wordCharacters () 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 foldAtElse () const +bool foldComments () const +bool foldCompact () const +bool foldPreprocessor () const +bool stylePreprocessor () const +void setDollarsAllowed (bool allowed) +bool dollarsAllowed () const + + + +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) + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth new file mode 100644 index 0000000000..356143e8b1 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciScintilla.qth @@ -0,0 +1,343 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ + + Header File to Generate QT Wrapper Sources + + + +QObject = Yes +Inherits = +Type = +New = +Folder = hbqscintilla + + + + +#include "qsciscintilla.h" +#include "hbqt_garbage.h" + + +/* + * QsciScintilla (QWidget *parent=0) + * virtual ~QsciScintilla () + */ +HB_FUNC( QT_QSCISCINTILLA ) +{ + if( HB_ISPOINTER( 1 ) ) + { + hb_retptr( new QsciScintilla( hbqt_par_QWidget( 1 ) ) ); + } + else + { + hb_retptr( new QsciScintilla() ); + } +} + + + +enum { AiMaintain = 0x01, AiOpening = 0x02, AiClosing = 0x04 } +enum AnnotationDisplay { AnnotationHidden = ANNOTATION_HIDDEN, AnnotationStandard = ANNOTATION_STANDARD, AnnotationBoxed = ANNOTATION_BOXED } +enum AutoCompletionSource { + AcsNone, AcsAll, AcsDocument, AcsAPIs +} +enum BraceMatch { NoBraceMatch, StrictBraceMatch, SloppyBraceMatch } +enum CallTipsStyle { + CallTipsNone, CallTipsNoContext, CallTipsNoAutoCompletionContext, CallTipsContext +} +enum EdgeMode { EdgeNone = EDGE_NONE, EdgeLine = EDGE_LINE, EdgeBackground = EDGE_BACKGROUND } +enum EolMode { EolWindows = SC_EOL_CRLF, EolUnix = SC_EOL_LF, EolMac = SC_EOL_CR } +enum FoldStyle { + NoFoldStyle, PlainFoldStyle, CircledFoldStyle, + BoxedFoldStyle, CircledTreeFoldStyle, BoxedTreeFoldStyle +} +enum MarginType { + SymbolMargin = SC_MARGIN_SYMBOL, SymbolMarginDefaultForegroundColor = SC_MARGIN_FORE, SymbolMarginDefaultBackgroundColor = SC_MARGIN_BACK, + NumberMargin = SC_MARGIN_NUMBER, TextMargin = SC_MARGIN_TEXT, TextMarginRightJustified = SC_MARGIN_RTEXT +} +enum MarkerSymbol { + Circle = SC_MARK_CIRCLE, Rectangle = SC_MARK_ROUNDRECT, RightTriangle = SC_MARK_ARROW, + SmallRectangle = SC_MARK_SMALLRECT, RightArrow = SC_MARK_SHORTARROW, Invisible = SC_MARK_EMPTY, + DownTriangle = SC_MARK_ARROWDOWN, Minus = SC_MARK_MINUS, Plus = SC_MARK_PLUS, + VerticalLine = SC_MARK_VLINE, BottomLeftCorner = SC_MARK_LCORNER, LeftSideSplitter = SC_MARK_TCORNER, + BoxedPlus = SC_MARK_BOXPLUS, BoxedPlusConnected = SC_MARK_BOXPLUSCONNECTED, BoxedMinus = SC_MARK_BOXMINUS, + BoxedMinusConnected = SC_MARK_BOXMINUSCONNECTED, RoundedBottomLeftCorner = SC_MARK_LCORNERCURVE, LeftSideRoundedSplitter = SC_MARK_TCORNERCURVE, + CircledPlus = SC_MARK_CIRCLEPLUS, CircledPlusConnected = SC_MARK_CIRCLEPLUSCONNECTED, CircledMinus = SC_MARK_CIRCLEMINUS, + CircledMinusConnected = SC_MARK_CIRCLEMINUSCONNECTED, Background = SC_MARK_BACKGROUND, ThreeDots = SC_MARK_DOTDOTDOT, + ThreeRightArrows = SC_MARK_ARROWS +} +enum WhitespaceVisibility { WsInvisible = SCWS_INVISIBLE, WsVisible = SCWS_VISIBLEALWAYS, WsVisibleAfterIndent = SCWS_VISIBLEAFTERINDENT } +enum WrapMode { WrapNone = SC_WRAP_NONE, WrapWord = SC_WRAP_WORD, WrapCharacter = SC_WRAP_CHAR } +enum WrapVisualFlag { WrapFlagNone, WrapFlagByText, WrapFlagByBorder } + + + + +# 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 +bool autoIndent () const +bool backspaceUnindents () const +void beginUndoAction () +BraceMatch braceMatching () const +CallTipsStyle callTipsStyle () const +int callTipsVisible () const +void cancelList () +bool caseSensitive () const +void clearFolds () +void clearRegisteredImages () +QColor color () const +void convertEols (EolMode mode) +QsciDocument document () const +void endUndoAction () +QColor edgeColor () const +int edgeColumn () const +EdgeMode edgeMode () const +void setFont (const QFont &f) +EolMode eolMode () const +bool eolVisibility () 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) +virtual bool findNext () +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 +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 +bool marginLineNumbers (int margin) const +int marginMarkerMask (int margin) const +bool marginSensitivity (int margin) const +MarginType marginType (int margin) const +int marginWidth (int margin) const +int markerDefine (MarkerSymbol sym, int mnr=-1) +int markerDefine (char ch, int mnr=-1) +int markerDefine (const QPixmap &pm, int mnr=-1) +int markerAdd (int linenr, int mnr) +unsigned markersAtLine (int linenr) const +void markerDelete (int linenr, int mnr=-1) +void markerDeleteAll (int mnr=-1) +void markerDeleteHandle (int mhandle) +int markerLine (int mhandle) const +int markerFindNext (int linenr, unsigned mask) const +int markerFindPrevious (int linenr, unsigned mask) const +QColor paper () const +int positionFromLineIndex (int line, int index) const +bool read (QIODevice *io) +virtual void recolor (int start=0, int end=-1) +void registerImage (int id, const QPixmap &pm) +virtual void replace (const QString &replaceStr) +void resetFoldMarginColors () +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 setCallTipsStyle (CallTipsStyle style) +void setCallTipsVisible (int nr) +void setDocument (const QsciDocument &document) +void setEdgeColor (const QColor &col) +void setEdgeColumn (int colnr) +void setEdgeMode (EdgeMode mode) +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 setMarkerBackgroundColor (const QColor &col, int mnr=-1) +void setMarkerForegroundColor (const QColor &col, int mnr=-1) +void setMatchedBraceBackgroundColor (const QColor &col) +void setMatchedBraceForegroundColor (const QColor &col) +void setUnmatchedBraceBackgroundColor (const QColor &col) +void setUnmatchedBraceForegroundColor (const QColor &col) +void setWrapVisualFlags (WrapVisualFlag eflag, WrapVisualFlag sflag=WrapFlagNone, int sindent=0) +QString selectedText () const +bool selectionToEol () const +void setSelectionToEol (bool filled) +void showUserList (int id, const QStringList &list) +QsciCommandSet * standardCommands () const +bool tabIndents () const +int tabWidth () const +QString text () const +QString text (int line) const +int textHeight (int linenr) const +WhitespaceVisibility whitespaceVisibility () const +QString wordAtPoint (const QPoint &point) const +const char * wordCharacters () const +WrapMode wrapMode () const +bool write (QIODevice *io) const + + + +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 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 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 setCaretLineVisible (bool enable) +virtual void setCaretWidth (int width) +virtual void setColor (const QColor &c) +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) +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) + + + +void cursorPositionChanged (int line, int pos) +void copyAvailable (bool yes) +void linesChanged () +void marginClicked (int margin, int line, Qt::KeyboardModifiers state) +void modificationAttempted () +void modificationChanged (bool m) +void selectionChanged () +void textChanged () +void userListActivated (int id, const QString &string) + + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciStyle.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciStyle.qth new file mode 100644 index 0000000000..4e8cb8c43b --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciStyle.qth @@ -0,0 +1,129 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = +Inherits = +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciStyle (int style=-1) + * QsciStyle (int style, const QString &description, const QColor &color, const QColor &paper, const QFont &font, bool eol_fill=false) + * + */ +HB_FUNC( QT_QSCISTYLE ) +{ + if( HB_ISNUMERIC( 1 ) ) + { + hb_retptr( new QsciStyle( hb_parni( 1 ) ) ); + } + else if( hb_pcount() >= 5 ) + { + hb_retptr( new QsciStyle( hb_parni( 1 ), hbqt_par_QString( 2 ), *hbqt_par_QColor( 3 ), *hbqt_par_QColor( 4 ), * hbqt_par_QFont( 5 ), HB_ISLOG( 6 ) ? hb_parl( 6 ) : false ) ); + } + else + { + hb_retptr( new QsciStyle() ); + } +} + + + +enum TextCase { OriginalCase = 0, UpperCase = 1, LowerCase = 2 } + + + +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 () + + + + + + + diff --git a/harbour/contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth b/harbour/contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth new file mode 100644 index 0000000000..e680c79af4 --- /dev/null +++ b/harbour/contrib/hbqt/hbqscintilla/qth/QsciStyledText.qth @@ -0,0 +1,106 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +QObject = no +Inherits = +Type = +New = +Folder = hbqscintilla + + + + + + + + + +#include +#include "hbqt_garbage.h" + + +/* + * QsciStyledText (const QString &text, int style) + * QsciStyledText (const QString &text, const QsciStyle &style) + * + */ +HB_FUNC( QT_QSCISTYLEDTEXT ) +{ + if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) ) + { + hb_retptr( new QsciStyledText( hbqt_par_QString( 1 ), hb_parni( 2 ) ) ); + } + else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) ) + { + hb_retptr( new QsciStyledText( hbqt_par_QString( 1 ), *hbqt_par_QsciStyle( 2 ) ) ); + } +} + + + + + + +const QString & text () const +int style () const + + + + + + + diff --git a/harbour/contrib/hbqt/hbqt.h b/harbour/contrib/hbqt/hbqt.h index a4eff6bf2e..ed6b6e126f 100644 --- a/harbour/contrib/hbqt/hbqt.h +++ b/harbour/contrib/hbqt/hbqt.h @@ -407,6 +407,20 @@ extern void * hbqt_pPtrFromItem( PHB_ITEM pObj ); #define hbqt_par_HBQTextBlockUserData( n ) ( ( HBQTextBlockUserData * ) hbqt_gcpointer( n ) ) #define hbqt_par_HBSlots( n ) ( ( HBSlots * ) hbqt_gcpointer( n ) ) +#define hbqt_par_HBQsciScintilla( n ) ( ( HBQsciScintilla * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciScintilla( n ) ( ( QsciScintilla * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciLexer( n ) ( ( QsciLexer * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciLexerCPP( n ) ( ( QsciLexerCPP * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciLexerFlagship( n ) ( ( QsciLexerFlagship * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciAbstractAPIs( n ) ( ( QsciAbstractAPIs * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciAPIs( n ) ( ( QsciAPIs * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciDocument( n ) ( ( QsciDocument * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciStyle( n ) ( ( QsciStyle * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciStyledText( n ) ( ( QsciStyledText * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciCommand( n ) ( ( QsciCommand * ) hbqt_gcpointer( n ) ) +#define hbqt_par_QsciCommandSet( n ) ( ( QsciCommandSet * ) hbqt_gcpointer( n ) ) + + #define hbqt_par_QString( n ) ( ( QString ) hb_parcx( n ) ) #define hbqt_par_QRgb( n ) ( hb_parnint( n ) ) #define hbqt_par_Bool( n ) ( hb_parl( n ) )